Skip to content

Commit 7ae4621

Browse files
authored
chore: enable npm provenance (#1383)
1 parent ad676dc commit 7ae4621

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/nodejs.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ jobs:
135135
136136
release:
137137
permissions:
138-
contents: write # for semantic-release
139-
issues: write # to create comment
140-
pull-requests: write # to create comment
138+
contents: write # to be able to publish a GitHub release
139+
issues: write # to be able to comment on released issues
140+
pull-requests: write # to be able to comment on released pull requests
141+
id-token: write # to enable use of OIDC for npm provenance
141142

142143
if:
143144
# prettier-ignore

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -158,5 +158,8 @@
158158
"packageManager": "[email protected]",
159159
"engines": {
160160
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
161+
},
162+
"publishConfig": {
163+
"provenance": true
161164
}
162165
}

0 commit comments

Comments
 (0)