Skip to content

Commit

Permalink
Merge pull request #95 from github/provenance
Browse files Browse the repository at this point in the history
Add npm package provenance in release workflow
  • Loading branch information
iansan5653 committed Oct 10, 2023
2 parents 8071994 + 31065d5 commit b5901b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
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 b5901b4

Please sign in to comment.