ci(release): enabled provenance for publishing to npm
This commit is contained in:
parent
050412eab8
commit
91eae117ed
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -7,13 +7,14 @@ name: Release
|
|||||||
- beta
|
- beta
|
||||||
- "*.x"
|
- "*.x"
|
||||||
permissions:
|
permissions:
|
||||||
contents: read # for checkout
|
contents: read # for checkout
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # to be able to publish a GitHub release
|
contents: write # to be able to publish a GitHub release
|
||||||
issues: write # to be able to comment on released issues
|
issues: write # to be able to comment on released issues
|
||||||
pull-requests: write # to be able to comment on released pull requests
|
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
|
name: release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -117,7 +117,8 @@
|
|||||||
"trailingComma": "es5"
|
"trailingComma": "es5"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public",
|
||||||
|
"provenance": true
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user