Skip to content

Commit f6e9d93

Browse files
TheIronDevtaeold
andauthored
Use npm ci on publish scripts (#137)
* Use npm ci on publish scripts This commit is a copy of [firebase/firebase-functions#940](firebase/firebase-functions#940) * Update scripts/publish.sh Co-authored-by: Daniel Lee <danielylee@google.com>
1 parent 45dbc2d commit f6e9d93

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ if [ ! -s CHANGELOG.md ]; then
7474
fi
7575
echo "Made sure there is a changelog."
7676

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

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

0 commit comments

Comments
 (0)