Skip to content

Commit a1b1cbf

Browse files
committed
Add JSR publish action
1 parent 94b6b2c commit a1b1cbf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ on:
66
- 'v2.*'
77

88
jobs:
9-
build:
9+
publish:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
1114
steps:
1215
- name: Checkout
13-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1417
with:
1518
fetch-depth: 0
1619

17-
- name: Setup node
20+
- name: Publish to NPM
1821
uses: actions/setup-node@v3
1922
with:
2023
node-version: '18'
@@ -25,3 +28,5 @@ jobs:
2528
- run: npm publish
2629
env:
2730
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
- name: Publish to JSR
32+
- run: npx jsr publish

0 commit comments

Comments
 (0)