Skip to content

fix(ci): use OIDC id-token for npm publish#39

Merged
jbiskur merged 1 commit into
mainfrom
fix/npm-publish-oidc
Jul 5, 2026
Merged

fix(ci): use OIDC id-token for npm publish#39
jbiskur merged 1 commit into
mainfrom
fix/npm-publish-oidc

Conversation

@jbiskur

@jbiskur jbiskur commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

v0.4.0 published to jsr but npm publish failed with ENEEDAUTH — NPM_TOKEN isn't usable and node 20's bundled npm is too old for Trusted Publisher OIDC. Same failure mode flowcore-sdk hit; same fix (flowcore-io/flowcore-sdk#235):

  • npm install -g npm@latest then npm publish --access public --provenance=false with no NODE_AUTH_TOKEN (pure OIDC; id-token: write was already set).
  • Adds workflow_dispatch so the failed 0.4.0 npm publish can be retried from main; the jsr step now skips already-published versions so the re-run doesn't fail there.

Note: requires @flowcore/hono-api to have the GitHub Trusted Publisher configured on npmjs.com (repo flowcore-io/hono-api, workflow build.yml) — same setup as @flowcore/sdk.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MmTkzbSACo6PhBj9o1Sr8A

npm publish failed ENEEDAUTH on v0.4.0 — NPM_TOKEN is not usable and
node 20's bundled npm is too old for Trusted Publisher OIDC. Update npm
to latest and publish without NODE_AUTH_TOKEN (provenance disabled on
the self-hosted Blacksmith runner), mirroring flowcore-sdk's fix.

Also add workflow_dispatch so a failed publish can be retried from main,
with the jsr step skipping versions that are already published.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MmTkzbSACo6PhBj9o1Sr8A
@jbiskur jbiskur merged commit d5e3f4a into main Jul 5, 2026
1 check passed
@jbiskur jbiskur deleted the fix/npm-publish-oidc branch July 5, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant