Skip to content

Commit 1c13e96

Browse files
ci(release): harden JSR publish step (OIDC, fail-loud)
- Drop continue-on-error so JSR publish failures fail the release instead of silently skipping. OIDC is already set up (id-token: write permission at the top of the workflow), so auth is handled automatically — no token secret needed. - Switch to `npx jsr publish`, the form recommended by JSR's Publishing from CI docs. Behavior matches `pnpm dlx jsr publish` but sidesteps any npm-registry auth interaction with the pnpm wrapper during the OIDC handshake. - `--allow-slow-types` retained as a safety net for JSR's slow-type analyzer in generic-heavy spots. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fdda203 commit 1c13e96

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ jobs:
5151
env:
5252
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5353

54-
- name: 🦕 Publish to JSR
55-
run: pnpm dlx jsr publish --allow-slow-types
56-
continue-on-error: true
54+
- name: 🦕 Publish to JSR (OIDC)
55+
run: npx jsr publish --allow-slow-types
5756

5857
- name: 📝 Generate changelog
5958
run: pnpm dlx changelogithub

0 commit comments

Comments
 (0)