Skip to content

Commit

Permalink
Add provenance to publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ranisalt committed Aug 31, 2024
1 parent 9ac10bd commit 30e2a51
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ jobs:
publish:
name: Publish package
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

needs:
- build
- build-freebsd-x64
Expand Down Expand Up @@ -208,10 +213,8 @@ jobs:

- name: Publish to NPM
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
npm version --allow-same-version --no-git-tag-version $VERSION
npm publish --tag $TAG
npm publish --provenance --tag $TAG
if: ${{ !env.ACT }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit 30e2a51

Please sign in to comment.