diff --git a/content/actions/publishing-packages/publishing-nodejs-packages.md b/content/actions/publishing-packages/publishing-nodejs-packages.md index 60c3f8b4e2e3..f93a9f89b69d 100644 --- a/content/actions/publishing-packages/publishing-nodejs-packages.md +++ b/content/actions/publishing-packages/publishing-nodejs-packages.md @@ -144,13 +144,13 @@ jobs: - run: npm ci - run: npm publish env: - NODE_AUTH_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} + NPM_AUTH_TOKEN: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %} ``` The `setup-node` action creates an *.npmrc* file on the runner. When you use the `scope` input to the `setup-node` action, the *.npmrc* file includes the scope prefix. By default, the `setup-node` action sets the scope in the *.npmrc* file to the account that contains that workflow file. ```ini -//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} +//npm.pkg.github.com/:_authToken=${NPM_AUTH_TOKEN} @octocat:registry=https://npm.pkg.github.com always-auth=true ```