S
Supanote
Sign in Sign up

GitHub Actions npm Package Publish with Sigstore Provenance

plain (yaml) 13 hours ago · 28 lines · 6 views
1name: Publish to npm
2on:
3 release:
4 types: [published]
5
6jobs:
7 publish:
8 runs-on: ubuntu-latest
9 permissions:
10 contents: read
11 id-token: write
13 steps:
14 - uses: actions/checkout@v4
15 - uses: actions/setup-node@v4
16 with:
17 node-version: 20
18 registry-url: 'https://registry.npmjs.org'
20 - run: npm ci
21 - run: npm test
22 - run: npm run build
24 - name: Publish package with provenance
25 run: npm publish --provenance --access public
26 env:
27 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

No replies yet

Every reply is a note. Start a discussion, ask a question, or attach a code snippet.

Share Note

Download SVG
Social Card Preview
Open on mobile
Point your phone camera to open this note directly

Report this note

Notification