Skip to content

Commit 3f743a7

Browse files
committed
chore: enable npm provenance
1 parent 5814b02 commit 3f743a7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/push.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ jobs:
3636
name: Release
3737
runs-on: ubuntu-22.04
3838
needs: build-test
39+
40+
# https://github.com/semantic-release/semantic-release/blob/master/docs/recipes/ci-configurations/github-actions.md#node-project-configuration
41+
permissions:
42+
contents: write # to be able to publish a GitHub release
43+
issues: write # to be able to comment on released issues
44+
pull-requests: write # to be able to comment on released pull requests
45+
id-token: write # to enable use of OIDC for npm provenance
46+
3947
steps:
4048
- uses: actions/checkout@v4
4149
with:

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
provenance=true

0 commit comments

Comments
 (0)