build(ci): fail if pnpm lockfile is not up2date
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 1 Oct 2023 20:21:44 +0000 (22:21 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 1 Oct 2023 20:21:44 +0000 (22:21 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/ci.yml
.github/workflows/generate-documentation.yml
.github/workflows/internal-benchmark.yml
.github/workflows/publish-package.yml
examples/typescript/build.sh

index 3419c5719e142d55a15ef939083623bd3cc4fa26..9f28cc573b0e01c0a96ddd131b75002cf57c1730 100644 (file)
@@ -41,7 +41,7 @@ jobs:
           cache: 'pnpm'
 
       - name: Install Dependencies
-        run: pnpm install --ignore-scripts
+        run: pnpm install --ignore-scripts --frozen-lockfile
 
       - name: Build
         run: pnpm build
index 0555ad8b779ebf04391c8779a55d80080922fb77..f8cf8e73c08681c634e90ef4d525c49527e18443 100644 (file)
@@ -24,7 +24,7 @@ jobs:
 
       - name: Generate documentation
         run: |
-          pnpm install --ignore-scripts
+          pnpm install --ignore-scripts --frozen-lockfile
           pnpm typedoc
 
       - name: Commit files
index b837bcd49bb45c13949fd80d695c872ab8229eab..884bb3f8be70e5baea69e2b81297e5f016debac1 100644 (file)
@@ -27,7 +27,7 @@ jobs:
           node-version: '18.x'
           cache: 'pnpm'
       - name: Install dependencies
-        run: pnpm install --ignore-scripts
+        run: pnpm install --ignore-scripts --frozen-lockfile
       - name: Run production benchmark
         run: pnpm benchmark:prod | tee ./benchmarks/internal/output.txt
       - name: Store production benchmark result
index ef3fc5fe24cd533810431f0da32be922f0934447..58adce749c1e468009ce755150a2b1756fc496d4 100644 (file)
@@ -24,7 +24,7 @@ jobs:
           cache: 'pnpm'
 
       - name: Install Dependencies
-        run: pnpm install --ignore-scripts
+        run: pnpm install --ignore-scripts --frozen-lockfile
 
       - name: Tests & Coverage
         run: |
@@ -58,7 +58,7 @@ jobs:
           cache: 'pnpm'
 
       - name: Install Dependencies
-        run: pnpm install --ignore-scripts
+        run: pnpm install --ignore-scripts --frozen-lockfile
 
       - name: Read package.json version
         id: package-version
@@ -106,7 +106,7 @@ jobs:
   #         cache: 'pnpm'
 
   #     - name: Install Dependencies
-  #       run: pnpm install --ignore-scripts
+  #       run: pnpm install --ignore-scripts --frozen-lockfile
 
   #     - name: Read package.json version
   #       id: package-version
index 2ebc5df089c77df3e185d58e72e289b323f0c809..8a8a436048354fcf80cc3d85ffb5d4aa70284f0a 100755 (executable)
@@ -8,7 +8,7 @@ for example in $examples
 do
   echo -e "Building $example"
   cd $example
-  pnpm install --ignore-scripts
+  pnpm install --ignore-scripts --frozen-lockfile
   pnpm build
   cd -
 done