Skip to content

Commit 451b2d3

Browse files
committed
feat: add provenance
1 parent 707d1e7 commit 451b2d3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/release.yml

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ name: Release
66
- next
77
- beta
88
- "*.x"
9+
# These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance
10+
permissions:
11+
contents: write # to be able to publish a GitHub release
12+
issues: write # to be able to comment on released issues
13+
pull-requests: write # to be able to comment on released pull requests
14+
id-token: write # to enable use of OIDC for npm provenance
915
jobs:
1016
release:
1117
name: release

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@
4040
},
4141
"engines": {
4242
"node": ">=18"
43+
},
44+
"publishConfig": {
45+
"access": "public",
46+
"provenance": true
4347
}
4448
}

0 commit comments

Comments
 (0)