From d5f7e87918207b2af35646b27e5f51e20ba48812 Mon Sep 17 00:00:00 2001 From: gkc Date: Mon, 14 Oct 2024 14:51:52 +0100 Subject: [PATCH] build: for the policy webapp, use `npm ci` rather than `npm install` in order to respect package-lock.json --- .github/workflows/multibuild.yaml | 2 +- packages/dart/sshnoports/buildArchive | 2 +- tools/multibuild/Dockerfile.package | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/multibuild.yaml b/.github/workflows/multibuild.yaml index 818da3ef8..91ff9b665 100644 --- a/.github/workflows/multibuild.yaml +++ b/.github/workflows/multibuild.yaml @@ -104,7 +104,7 @@ jobs: working-directory: ./apps/admin/webapp run: | npm install -g npm@10.8.2 - npm install + npm ci npm run build - if: ${{ matrix.os != 'windows-latest' }} run: | diff --git a/packages/dart/sshnoports/buildArchive b/packages/dart/sshnoports/buildArchive index 8fb0bf54d..07ab4cd5d 100755 --- a/packages/dart/sshnoports/buildArchive +++ b/packages/dart/sshnoports/buildArchive @@ -39,7 +39,7 @@ wait cd ../webapp || exit 1 echo "Building admin webapp" npm install -g npm@10.8.2 || exit 1 -npm install || exit 1 +npm ci || exit 1 npm run build || exit 1 wait diff --git a/tools/multibuild/Dockerfile.package b/tools/multibuild/Dockerfile.package index cccaf5659..238a94ab0 100644 --- a/tools/multibuild/Dockerfile.package +++ b/tools/multibuild/Dockerfile.package @@ -42,7 +42,7 @@ RUN dart pub get --enforce-lockfile; \ # Build apps/admin/webapp WORKDIR /noports/apps/admin/webapp -RUN npm install; \ +RUN npm ci; \ npm run build; \ mkdir -p /sshnp/web/admin; \ cp -r ./dist/* /sshnp/web/admin/