Skip to content

Commit ccf842f

Browse files
committed
ci(release): enabled provenance for publishing
1 parent 147bcac commit ccf842f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@ name: Release
66
- next
77
- beta
88
- "*.x"
9+
permissions:
10+
contents: read # for checkout
911
jobs:
1012
release:
13+
permissions:
14+
contents: write # to be able to publish a GitHub release
15+
issues: write # to be able to comment on released issues
16+
pull-requests: write # to be able to comment on released pull requests
17+
id-token: write # to enable use of OIDC for npm provenance
1118
name: release
1219
runs-on: ubuntu-latest
1320
steps:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
"trailingComma": "es5"
8080
},
8181
"publishConfig": {
82-
"access": "public"
82+
"access": "public",
83+
"provenance": true
8384
},
8485
"repository": {
8586
"type": "git",

0 commit comments

Comments
 (0)