Skip to content

Commit

Permalink
Try to set registry url before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
englercj committed May 29, 2020
1 parent 9c53cb7 commit 852fe7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
CI: true
- name: Publish Version
if: success() && github.event_name == 'release'
run: npm publish --access public
run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 852fe7b

Please sign in to comment.