diff --git a/.github/actions/install-npm-packages/action.yml b/.github/actions/install-npm-packages/action.yml index 38b021a0..2eb81cba 100644 --- a/.github/actions/install-npm-packages/action.yml +++ b/.github/actions/install-npm-packages/action.yml @@ -19,10 +19,10 @@ runs: if: inputs.server == 'true' shell: bash run: | - npm i --prefix=app/server + npm ci --prefix=app/server - name: Install static (frontend) NPM packages if: inputs.static == 'true' shell: bash run: | - npm i --prefix=app/static + npm ci --prefix=app/static diff --git a/scripts/build-backend.sh b/scripts/build-backend.sh index c99991fb..80bedef6 100644 --- a/scripts/build-backend.sh +++ b/scripts/build-backend.sh @@ -1,5 +1,5 @@ set -ex ROOT=$(realpath $(dirname $0)/..) -npm install --prefix=$ROOT/app/server +npm ci --prefix=$ROOT/app/server npm run build --prefix=$ROOT/app/server diff --git a/scripts/build.sh b/scripts/build.sh index 26f98f27..e52e8c31 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,7 +1,7 @@ set -ex ROOT=$(realpath $(dirname $0)/..) -npm install --prefix=$ROOT/app/static +npm ci --prefix=$ROOT/app/static npm run build-with-check --prefix=$ROOT/app/static . $ROOT/scripts/build-backend.sh