From d9d8bb32d5cf4196282f86412a147657a83035c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 1 Oct 2023 22:23:14 +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 | 4 ++-- docker/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57acc06c..e88393ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: node-version: ${{ matrix.node }} cache: 'pnpm' - name: pnpm install - run: pnpm install --ignore-scripts + run: pnpm install --ignore-scripts --frozen-lockfile - name: pnpm lint if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} run: pnpm lint @@ -101,7 +101,7 @@ jobs: node-version: ${{ matrix.node }} cache: 'pnpm' - name: pnpm install - run: pnpm install --ignore-scripts + run: pnpm install --ignore-scripts --frozen-lockfile - name: pnpm lint if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '20.x' }} run: pnpm lint diff --git a/docker/Dockerfile b/docker/Dockerfile index 1d88ea82..96d856ec 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,7 +12,7 @@ RUN set -ex \ && corepack prepare pnpm@latest --activate \ && pnpm set progress=false \ && pnpm config set depth 0 \ - && pnpm install --ignore-scripts \ + && pnpm install --ignore-scripts --frozen-lockfile \ && pnpm build \ && apk del .gyp @@ -24,7 +24,7 @@ RUN set -ex \ && corepack prepare pnpm@latest --activate \ && pnpm set progress=false \ && pnpm config set depth 0 \ - && pnpm install --ignore-scripts \ + && pnpm install --ignore-scripts --frozen-lockfile \ && pnpm build FROM node:lts-alpine -- 2.34.1