Skip to content

Commit d374f4b

Browse files
authored
feat: support publish to GPR (#17)
1 parent 2afd4d6 commit d374f4b

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]
@@ -23,6 +23,15 @@ jobs:
2323
run: yarn install --network-concurrency 1
2424

2525
- name: Publish (NPM)
26-
run: npm publish --access public
26+
run: yarn 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: yarn publish
36+
env:
37+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)