Skip to content

Commit

Permalink
Add authenticate npm step
Browse files Browse the repository at this point in the history
  • Loading branch information
mkfreeman committed Nov 15, 2024
1 parent 790dd2a commit ad502fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Publish NPM
on:
workflow_dispatch:
Expand All @@ -22,6 +21,8 @@ jobs:
run: npm run build
- name: Run tests
run: npm test
- name: Authenticate npm
run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
- name: Publish
run: |
npm version ${{ inputs.packageVersion }} --no-git-tag-version
Expand Down

0 comments on commit ad502fe

Please sign in to comment.