Skip to content

Commit 56b6c80

Browse files
authored
feat: support publish to GPR (#5)
1 parent f176bef commit 56b6c80

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to NPM
1+
name: Publish to NPM/GPR
22
on:
33
release:
44
types: [published]
@@ -26,3 +26,12 @@ jobs:
2626
run: npm publish --access public
2727
env:
2828
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
30+
- uses: actions/setup-node@v3
31+
with:
32+
registry-url: 'https://npm.pkg.github.com'
33+
34+
- name: Publish (GPR)
35+
run: npm publish --access public
36+
env:
37+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)