Skip to content

Commit

Permalink
fix: correctly auth no NPM (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi authored Feb 17, 2023
1 parent 4db8f63 commit 6c285bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ jobs:
uses: actions/checkout@v3
- name: Set release version to package.json
run: jq --indent 4 '.version = "${{ github.ref_name }}"' < package.json > package.json~ && mv package.json~ package.json
- name: NPM release
run: npm publish
- name: NPM auth
run: npm set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: "${{ secrets.NPMJS_SECRET }}"
- name: NPM release
run: npm publish

0 comments on commit 6c285bc

Please sign in to comment.