Skip to content

Commit 22c1123

Browse files
authored
feat: support publish to GPR (#33)
1 parent 48d5245 commit 22c1123

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 2 deletions
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,6 +26,15 @@ jobs:
2626
run: yarn build
2727

2828
- name: Publish (NPM)
29-
run: npm publish --access public
29+
run: yarn publish --access public
3030
env:
3131
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32+
33+
- uses: actions/setup-node@v3
34+
with:
35+
registry-url: 'https://npm.pkg.github.com'
36+
37+
- name: Publish (GPR)
38+
run: yarn publish
39+
env:
40+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)