Skip to content

Commit

Permalink
ci: attempt to change environmental variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftwork committed Mar 10, 2020
1 parent b12bb13 commit 655d778
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Append npm registry authentication to .npmrc
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ${NPM_CONFIG_USERCONFIG}
echo '//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}' >> ${NPM_CONFIG_USERCONFIG}
- name: Install dependencies using CI
run: npm ci
Expand All @@ -55,3 +55,5 @@ jobs:
- name: Publish package to NPM
run: npm publish --access public --@trutoo:registry=https://registry.npmjs.org
if: env.VERSION != null # Only if semantic-release publishes the package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Used by standard npm publish

0 comments on commit 655d778

Please sign in to comment.