From c1a37d9809b0a6563a07795b182df7b0ee6da959 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 1 Oct 2023 22:21:44 +0200 Subject: [PATCH] build(ci): fail if pnpm lockfile is not up2date MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/ci.yml | 2 +- .github/workflows/generate-documentation.yml | 2 +- .github/workflows/internal-benchmark.yml | 2 +- .github/workflows/publish-package.yml | 6 +++--- examples/typescript/build.sh | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3419c571..9f28cc57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/generate-documentation.yml b/.github/workflows/generate-documentation.yml index 0555ad8b..f8cf8e73 100644 --- a/.github/workflows/generate-documentation.yml +++ b/.github/workflows/generate-documentation.yml @@ -24,7 +24,7 @@ jobs: - name: Generate documentation run: | - pnpm install --ignore-scripts + pnpm install --ignore-scripts --frozen-lockfile pnpm typedoc - name: Commit files diff --git a/.github/workflows/internal-benchmark.yml b/.github/workflows/internal-benchmark.yml index b837bcd4..884bb3f8 100644 --- a/.github/workflows/internal-benchmark.yml +++ b/.github/workflows/internal-benchmark.yml @@ -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 diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index ef3fc5fe..58adce74 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -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 diff --git a/examples/typescript/build.sh b/examples/typescript/build.sh index 2ebc5df0..8a8a4360 100755 --- a/examples/typescript/build.sh +++ b/examples/typescript/build.sh @@ -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 -- 2.34.1