Skip to content

Commit

Permalink
build: publish to github in addition to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
bnussman committed Nov 1, 2023
1 parent e34d0bc commit 00889bb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,14 @@ jobs:
path: dist/
- name: Publish to NPM
continue-on-error: true
run: npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --access public
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: actions/setup-node@v3
with:
registry-url: "https://npm.pkg.github.com"
- name: Publish to Github Package Repository
continue-on-error: true
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ github.token }}

0 comments on commit 00889bb

Please sign in to comment.