ci: switch npm publish to OIDC trusted publishing (#8454)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user