Skip to content

Commit 267cf25

Browse files
Replace npm install with npm ci (#12148)
1 parent 4710493 commit 267cf25

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

content/actions/publishing-packages/publishing-nodejs-packages.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
with:
7979
node-version: '12.x'
8080
registry-url: 'https://registry.npmjs.org'
81-
- run: npm install
81+
- run: npm ci
8282
- run: npm publish
8383
env:
8484
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -142,7 +142,7 @@ jobs:
142142
registry-url: 'https://npm.pkg.github.com'
143143
# Defaults to the user or organization that owns the workflow file
144144
scope: '@octocat'
145-
- run: npm install
145+
- run: npm ci
146146
- run: npm publish
147147
env:
148148
NODE_AUTH_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
@@ -224,7 +224,7 @@ jobs:
224224
with:
225225
node-version: '10.x'
226226
registry-url: 'https://registry.npmjs.org'
227-
- run: npm install
227+
- run: npm ci
228228
# Publish to npm
229229
- run: npm publish --access public
230230
env:{% raw %}

0 commit comments

Comments
 (0)