Skip to content

Commit 183a145

Browse files
author
A.P.A. Slaa
committed
chore: use semantic-release jsr plugin
1 parent be3a73d commit 183a145

File tree

4 files changed

+217
-216
lines changed

4 files changed

+217
-216
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
runs-on: ubuntu-latest
4141
permissions:
4242
contents: write
43+
id-token: write
4344
env:
4445
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4546
outputs:
@@ -108,38 +109,12 @@ jobs:
108109
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
109110
run: npm publish --access public
110111

111-
publish-jsr:
112-
name: Publish JSR
113-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
114-
needs:
115-
- create-release
116-
runs-on: ubuntu-latest
117-
permissions:
118-
contents: read
119-
id-token: write
120-
steps:
121-
- name: Checkout repository
122-
if: needs.create-release.outputs.release_created == 'true'
123-
uses: actions/checkout@v4
124-
with:
125-
ref: ${{ needs.create-release.outputs.release_tag }}
126-
fetch-depth: 0
127-
- name: Setup Node.js
128-
if: needs.create-release.outputs.release_created == 'true'
129-
uses: actions/setup-node@v4
130-
with:
131-
node-version: 24
132-
- name: Publish to JSR
133-
if: needs.create-release.outputs.release_created == 'true'
134-
run: npx jsr publish
135-
136112
deploy-docs:
137113
name: Deploy Docs
138114
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
139115
needs:
140116
- create-release
141117
- publish-npm
142-
- publish-jsr
143118
runs-on: ubuntu-latest
144119
permissions:
145120
contents: read

0 commit comments

Comments
 (0)