Skip to content

Commit 3b98de2

Browse files
marcstraubeclaude
andauthored
chore(ci): switch npm publish to trusted publishing with provenance (#17)
## Summary - Replace `NPM_TOKEN` secret with OIDC-based npm Trusted Publishing - Add `id-token: write` permission for OIDC token generation - Add `--provenance` flag for supply chain integrity attestation - No long-lived secrets needed for npm publishing ## Test plan - [x] Trusted Publishing configured on npmjs.com for this repository - [ ] Next release publishes successfully with provenance badge on npmjs.com 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e36b7b8 commit 3b98de2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
permissions:
99
contents: write
1010
pull-requests: write
11+
id-token: write
1112

1213
jobs:
1314
release-please:
@@ -47,9 +48,7 @@ jobs:
4748

4849
- name: Publish to npm
4950
if: ${{ steps.release.outputs.release_created }}
50-
run: pnpm publish --access public --no-git-checks
51-
env:
52-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
run: pnpm publish --access public --no-git-checks --provenance
5352

5453
- name: Generate SBOM
5554
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)