diff --git a/package.json b/package.json index 41e3a6e..500eabd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "build": "npm i && node_modules/.bin/tsc -p tsconfig.release.json", "build:pack": "npm prune --production && rm -rf lib && npm install && node_modules/.bin/tsc -p tsconfig.release.json && npm pack && npm install", - "build:release": "npm install --production && npm install --no-save typescript firebase-functions firebase-admin && node_modules/.bin/tsc -p tsconfig.release.json", + "build:release": "npm ci --production && npm install --no-save typescript firebase-functions firebase-admin && node_modules/.bin/tsc -p tsconfig.release.json", "lint": "node_modules/.bin/tslint src/{**/*,*}.ts spec/{**/*,*}.ts", "pretest": "node_modules/.bin/tsc", "test": "mocha .tmp/spec/index.spec.js", diff --git a/scripts/publish.sh b/scripts/publish.sh index 7d9cb33..7f87a0b 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