Skip to content

Commit

Permalink
authenticate npm
Browse files Browse the repository at this point in the history
  • Loading branch information
teunmooij committed Jul 5, 2024
1 parent cc7a4de commit 7d7f476
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ jobs:
echo "new-version=${NEW_VERSION}" >> $GITHUB_OUTPUT
if: inputs.version && inputs.version != 'none'

- name: Set up NPM 🔑
run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"

- name: Publish 🚀
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create release ⛩️
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 7d7f476

Please sign in to comment.