Commit 3258b26
Add npm publish workflow (Trusted Publishing via OIDC)
Publishes to npm automatically when a `v*` tag is pushed. Uses GitHub
OIDC trusted publishing (no NPM_TOKEN secret) with provenance, so the
package gets a verifiable build attestation and there is no long-lived
credential to manage.
The job upgrades npm to >= 11.5.1 (required for trusted publishing),
installs deps with bun, verifies the tag matches package.json version,
then runs `npm publish --provenance` — which triggers the existing
prepublishOnly gate (check, typecheck, test, licenses, build).
Requires the npm package to have a Trusted Publisher configured for
this repo + the publish.yml workflow (done on npmjs.com).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent a073bea commit 3258b26
1 file changed
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments