Skip to content

Commit 819f8e2

Browse files
benmccanndominikg
andauthored
chore: publish package provenance info (#959)
* chore: publish package provenance info * fix: move provenance setting from package.json to release action env * fix: remove changeset, not needed --------- Co-authored-by: dominikg <[email protected]>
1 parent 0d088f5 commit 819f8e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
release:
1111
permissions:
1212
contents: write # to create release (changesets/action)
13+
id-token: write # OpenID Connect token needed for provenance
1314
pull-requests: write # to create pull request (changesets/action)
1415
# prevents this action from running on forks
1516
if: github.repository == 'sveltejs/vite-plugin-svelte'
@@ -62,6 +63,7 @@ jobs:
6263
env:
6364
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6465
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
66+
NPM_CONFIG_PROVENANCE: true
6567

6668
# TODO alert discord
6769
# - name: Send a Slack notification if a publish happens

0 commit comments

Comments
 (0)