ci(release): enabled provenance for publishing to npm

This commit is contained in:
Matt Travi
2023-03-21 22:12:37 -05:00
parent 050412eab8
commit 91eae117ed
2 changed files with 7 additions and 5 deletions
+5 -4
View File
@@ -7,13 +7,14 @@ name: Release
- beta
- "*.x"
permissions:
contents: read # for checkout
contents: read # for checkout
jobs:
release:
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
name: release
runs-on: ubuntu-latest
steps:
+2 -1
View File
@@ -117,7 +117,8 @@
"trailingComma": "es5"
},
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
},
"repository": {
"type": "git",