Skip to content

Commit 1271d95

Browse files
authored
use npm token for prepublish (#741)
1 parent f0bf5d0 commit 1271d95

File tree

1 file changed

+3
-1
lines changed
  • .github/actions/publish/publish-stronghold-nodejs

1 file changed

+3
-1
lines changed

.github/actions/publish/publish-stronghold-nodejs/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ runs:
5252
env:
5353
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
5454
# will publish 'latest' tag if no tag is passed
55-
run: npm publish $(if [ ${{ inputs.tag }} != '' ]; then echo --tag ${{ inputs.tag }}; fi) --access public
55+
run: |
56+
echo "//registry.npmjs.org/:_authToken=${{ inputs.npm-token }}" >> ~/.npmrc
57+
npm publish $(if [ ${{ inputs.tag }} != '' ]; then echo --tag ${{ inputs.tag }}; fi) --access public

0 commit comments

Comments
 (0)