Skip to content

Commit

Permalink
ci(release): enabled provenance for publishing to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Mar 22, 2023
1 parent 050412e commit 91eae11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -117,7 +117,8 @@
"trailingComma": "es5"
},
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 91eae11

Please sign in to comment.