ci: npm publish with provenance (#1582)

* npm publish with provenance

* update token to allow creating id-token
This commit is contained in:
Jacob Bolda
2024-07-24 08:40:11 -05:00
committed by GitHub
parent 20a1d24ee0
commit bb09c7ca6e
3 changed files with 27 additions and 1 deletions
@@ -9,6 +9,14 @@ on:
branches:
- v2
permissions:
# required for npm provenance
id-token: write
# required to create the GitHub Release
contents: write
# required for creating the Version Packages Release
pull-requests: write
jobs:
version-or-publish:
runs-on: ubuntu-latest
@@ -9,6 +9,14 @@ on:
branches:
- v1
permissions:
# required for npm provenance
id-token: write
# required to create the GitHub Release
contents: write
# required for creating the Version Packages Release
pull-requests: write
jobs:
version-or-publish:
runs-on: ubuntu-latest