Skip to content

Commit

Permalink
Publish with provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreif committed Oct 14, 2024
1 parent 133d4b6 commit 1a88fd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
release:
types: [created]

permissions:
contents: read
id-token: write

jobs:
publish-npm:
runs-on: ubuntu-latest
Expand All @@ -19,6 +23,6 @@ jobs:
- run: npm version ${TAG_NAME} --git-tag-version=false
env:
TAG_NAME: ${{ github.event.release.tag_name }}
- run: npm whoami; npm --ignore-scripts publish
- run: npm whoami; npm --ignore-scripts publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 1a88fd2

Please sign in to comment.