Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
publish-npm:
needs: build # Wait for tests to pass before publishing
runs-on: ubuntu-latest
permissions:
contents: read # Needed by actions/checkout
id-token: write # Needed to mint the OIDC token npm uses to sign the provenance attestation
steps:
- uses: actions/checkout@v5

Expand All @@ -43,6 +46,7 @@ jobs:
- run: npm run build:prod

# Publish to npm with public access (scoped packages are private by default)
- run: npm publish --access public
# --provenance attaches a signed SLSA build attestation linking the tarball to this workflow run
- run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}} # Use npm token from GitHub secrets
Loading