diff --git a/package.json b/package.json index e255e1d96..4cc83df2c 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "scripts": { "apidocs": "node docgen/generate-docs.js", "build:pack": "rm -rf lib && npm install && tsc -p tsconfig.release.json && npm pack", - "build:release": "npm install --production && npm install --no-save typescript firebase-admin && tsc -p tsconfig.release.json", + "build:release": "npm ci --production && npm install --no-save typescript firebase-admin && tsc -p tsconfig.release.json", "build": "tsc -p tsconfig.release.json", "build:watch": "npm run build -- -w", "format": "prettier --check '**/*.{json,md,ts,yml,yaml}'", diff --git a/scripts/publish.sh b/scripts/publish.sh index 9246562ae..ea5acde68 100644 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -74,9 +74,9 @@ if [ ! -s CHANGELOG.md ]; then fi echo "Made sure there is a changelog." -echo "Running npm install..." -npm install -echo "Ran npm install." +echo "Running npm ci..." +npm ci +echo "Ran npm ci." echo "Running tests..." npm test