Skip to content

Commit

Permalink
Merge pull request #6 from kollegorna/feat/add-ghp-publish
Browse files Browse the repository at this point in the history
Publish the package to GHP
  • Loading branch information
Joakim Nylén authored Feb 4, 2020
2 parents ceb50a4 + 43cadf9 commit c43aa35
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ jobs:
- name: Publish the package to npmjs
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm config set scope "@kollegorna"
npm config set @kollegorna:registry https://registry.npmjs.org/
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

- name: Publish the package to GPR
run: |
npm config set //npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN
npm config set @kollegorna:registry https://npm.pkg.github.com/
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GPR_AUTH_TOKEN}}

0 comments on commit c43aa35

Please sign in to comment.