Skip to content

Commit

Permalink
use npm token for prepublish (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass authored Mar 21, 2022
1 parent f0bf5d0 commit 1271d95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/publish/publish-stronghold-nodejs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ runs:
env:
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
# will publish 'latest' tag if no tag is passed
run: npm publish $(if [ ${{ inputs.tag }} != '' ]; then echo --tag ${{ inputs.tag }}; fi) --access public
run: |
echo "//registry.npmjs.org/:_authToken=${{ inputs.npm-token }}" >> ~/.npmrc
npm publish $(if [ ${{ inputs.tag }} != '' ]; then echo --tag ${{ inputs.tag }}; fi) --access public

0 comments on commit 1271d95

Please sign in to comment.