ci: switch npm publish to OIDC trusted publishing (#8454)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jack Amadeo
2026-04-10 16:30:45 -04:00
committed by GitHub
parent b1eff5f7f9
commit 9cf178265b
17 changed files with 237 additions and 374 deletions
+15 -1
View File
@@ -9,9 +9,10 @@ on:
name: Release
permissions:
id-token: write # Required for Sigstore OIDC signing and AWS OIDC (Windows signing)
id-token: write # Required for Sigstore OIDC signing, AWS OIDC (Windows signing), and npm trusted publishing
contents: write # Required for creating releases and by actions/checkout
actions: read # May be needed for some workflows
pull-requests: write # Required for npm publish workflow
attestations: write # Required for SLSA build provenance attestations
concurrency:
@@ -151,3 +152,16 @@ jobs:
allowUpdates: true
omitBody: true
omitPrereleaseDuringUpdate: true
# ------------------------------------
# 8) Publish npm packages
# ------------------------------------
publish-npm:
needs: [release]
uses: ./.github/workflows/publish-npm.yml
with:
release-tag: ${{ github.ref_name }}
permissions:
contents: write
pull-requests: write
id-token: write