Skip to content

Commit

Permalink
Setup NPM auth for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
huntharo committed Jun 29, 2023
1 parent 9192f93 commit 038e4d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
- name: Test
run: npm run test

- name: NPM registry authentication
run: npm set //registry.npmjs.org/:_authToken ${{ secrets.NPMJSORG_PUBLISH_TOKEN }}

- name: Publish with CLI to Code Artifact
run: |
npm publish --access public --ignore-scripts --dry-run
npm publish --access public --ignore-scripts

0 comments on commit 038e4d0

Please sign in to comment.