Skip to content

Commit

Permalink
fix: generate provenance statements on release (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Oct 17, 2024
1 parent 62a3f61 commit bf895e0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ concurrency:
group: release
cancel-in-progress: false

permissions:
contents: write # to be able to publish a GitHub release
id-token: write # to enable use of OIDC for npm provenance
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests

jobs:
publish:
name: Publish NPM package
Expand All @@ -38,7 +44,8 @@ jobs:
run: npm run build

- name: Release new version
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
run: npx semantic-release

0 comments on commit bf895e0

Please sign in to comment.