Skip to content

Commit

Permalink
chore: generate provenance statements on release
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Oct 16, 2024
1 parent df1924e commit 283567f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
branches:
- main
name: release-please

permissions:
id-token: write # to enable use of OIDC for npm provenance

jobs:
release-please:
runs-on: ubuntu-latest
Expand All @@ -24,7 +28,7 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
Expand Down

0 comments on commit 283567f

Please sign in to comment.