Skip to content

Commit 8e632af

Browse files
committed
Add publish for NPM and Github.
1 parent f9d73e3 commit 8e632af

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,16 @@ jobs:
3232
- name: Run Tests
3333
run: npm run test
3434

35-
- name: Publish
36-
uses: JS-DevTools/npm-publish@v3
35+
- name: Publish NPM
36+
uses: JS-DevTools/npm-publish@v4
3737
if: startsWith(github.ref, 'refs/tags/')
3838
with:
39-
access: 'public'
40-
token: ${{ secrets.NPM_AUTH_TOKEN }}
39+
access: public
40+
registry: https://npm.pkg.github.com
41+
42+
- name: Publish GitHub
43+
uses: JS-DevTools/npm-publish@v4
44+
if: startsWith(github.ref, 'refs/tags/')
45+
with:
46+
access: public
47+
registry: https://npm.pkg.github.com

0 commit comments

Comments
 (0)