Skip to content

Commit

Permalink
npm provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
xan105 committed Apr 20, 2023
1 parent 7fc08bf commit fa806df
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.head_commit.message, 'v')
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm publish --access public
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit fa806df

Please sign in to comment.