From 267cf250ecf92dfd4089af8c3aed7f3405689ee7 Mon Sep 17 00:00:00 2001 From: JenniferKiesel Date: Fri, 3 Dec 2021 20:28:49 +0100 Subject: [PATCH] Replace npm install with npm ci (#12148) --- .../publishing-packages/publishing-nodejs-packages.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/actions/publishing-packages/publishing-nodejs-packages.md b/content/actions/publishing-packages/publishing-nodejs-packages.md index e20bb852f5..d209f0bf65 100644 --- a/content/actions/publishing-packages/publishing-nodejs-packages.md +++ b/content/actions/publishing-packages/publishing-nodejs-packages.md @@ -78,7 +78,7 @@ jobs: with: node-version: '12.x' registry-url: 'https://registry.npmjs.org' - - run: npm install + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -142,7 +142,7 @@ jobs: registry-url: 'https://npm.pkg.github.com' # Defaults to the user or organization that owns the workflow file scope: '@octocat' - - run: npm install + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} @@ -224,7 +224,7 @@ jobs: with: node-version: '10.x' registry-url: 'https://registry.npmjs.org' - - run: npm install + - run: npm ci # Publish to npm - run: npm publish --access public env:{% raw %}