S
Supanote
Sign in Sign up

GitHub Actions npm Package Publish with Sigstore Provenance

plain (yaml) 1 month ago · 28 lines · 215 views
Verified Blueprint GitHub Actions

Secure npm publishing workflow utilizing OIDC token authentication, Sigstore build provenance, and automated semantic releases.

Quick Fetch
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.

Related GitHub Actions & CI/CD Pipelines Blueprints

Production-ready configurations and diagnostics from the verified Supanote library.

All CI/CD Pipelines →
Interactive Developer Workbench: Docker Container & JSON Log Viewer

Inspect Docker Compose stdout/stderr streams, JSON log drivers, ANSI color codes, and multi-line stack traces.

Open Docker Log Viewer →

Share Note

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

Report this note

Notification