Skip to content

Commit 30e2a51

Browse files
committed
Add provenance to publishing
1 parent 9ac10bd commit 30e2a51

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ jobs:
175175
publish:
176176
name: Publish package
177177
runs-on: ubuntu-latest
178+
179+
permissions:
180+
contents: read
181+
id-token: write
182+
178183
needs:
179184
- build
180185
- build-freebsd-x64
@@ -208,10 +213,8 @@ jobs:
208213

209214
- name: Publish to NPM
210215
run: |
211-
git config --global user.name 'github-actions[bot]'
212-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
213216
npm version --allow-same-version --no-git-tag-version $VERSION
214-
npm publish --tag $TAG
217+
npm publish --provenance --tag $TAG
215218
if: ${{ !env.ACT }}
216219
env:
217220
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)