Skip to content

Commit

Permalink
Add package provenance via workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iansan5653 committed Oct 10, 2023
1 parent 365110a commit 69fb77f
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 69fb77f

Please sign in to comment.