Skip to content

Commit 50c0b00

Browse files
committed
build: enable provenance
1 parent 2b1bfde commit 50c0b00

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ name: Release
33
push:
44
branches:
55
- main
6+
7+
# These are recommended by the semantic-release docs: https://github.com/semantic-release/npm#npm-provenance
8+
permissions:
9+
contents: write # to be able to publish a GitHub release
10+
issues: write # to be able to comment on released issues
11+
pull-requests: write # to be able to comment on released pull requests
12+
id-token: write # to enable use of OIDC for npm provenance
613
jobs:
714
release:
815
name: release

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@
2222
"branches": [
2323
"main"
2424
]
25+
},
26+
"publishConfig": {
27+
"provenance": true
2528
}
2629
}

0 commit comments

Comments
 (0)