Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit c279a15

Browse files
authored
Merge pull request #6 from hookdeck/core/publish-to-jsr
chore: add JSR publishing
2 parents 3496bdb + 6ea67f6 commit c279a15

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Compile
3030
run: yarn && yarn test
3131

32-
publish:
32+
publish-npm:
3333
needs: [ compile, test ]
3434
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
3535
runs-on: ubuntu-latest
@@ -52,4 +52,19 @@ jobs:
5252
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
5353
npm publish --access public
5454
env:
55-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
55+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
56+
57+
publish-jsr:
58+
needs: [ compile, test ]
59+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
60+
runs-on: ubuntu-latest
61+
62+
permissions:
63+
contents: read
64+
id-token: write
65+
66+
steps:
67+
- uses: actions/checkout@v4
68+
69+
- name: Publish package
70+
run: npx jsr publish

0 commit comments

Comments
 (0)