From: Jérôme Benoit Date: Sun, 1 Oct 2023 20:23:14 +0000 (+0200) Subject: build(ci): fail if pnpm lockfile is not up2date X-Git-Tag: v1.2.23~3 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d9d8bb32d5cf4196282f86412a147657a83035c7;p=e-mobility-charging-stations-simulator.git build(ci): fail if pnpm lockfile is not up2date Signed-off-by: Jérôme Benoit --- 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