Skip to content

Commit 9fdcb33

Browse files
committed
Use npm ci on publish scripts
This commit is a copy of [firebase/firebase-functions#940](firebase/firebase-functions#940)
1 parent f0e9af1 commit 9fdcb33

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build": "npm i && node_modules/.bin/tsc -p tsconfig.release.json",
88
"build:pack": "npm prune --production && rm -rf lib && npm install && node_modules/.bin/tsc -p tsconfig.release.json && npm pack && npm install",
9-
"build:release": "npm install --production && npm install --no-save typescript firebase-functions firebase-admin && node_modules/.bin/tsc -p tsconfig.release.json",
9+
"build:release": "npm ci --production && npm install --no-save typescript firebase-functions firebase-admin && node_modules/.bin/tsc -p tsconfig.release.json",
1010
"lint": "node_modules/.bin/tslint src/{**/*,*}.ts spec/{**/*,*}.ts",
1111
"pretest": "node_modules/.bin/tsc",
1212
"test": "mocha .tmp/spec/index.spec.js",

scripts/publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ fi
7575
echo "Made sure there is a changelog."
7676

7777
echo "Running npm install..."
78-
npm install
79-
echo "Ran npm install."
78+
npm ci
79+
echo "Ran npm ci."
8080

8181
echo "Running tests..."
8282
npm test

0 commit comments

Comments
 (0)