Skip to content

ci: publish to npm via OIDC trusted publishing - #4

Merged
planadecu merged 1 commit into
mainfrom
ci/oidc-trusted-publishing
Jul 13, 2026
Merged

ci: publish to npm via OIDC trusted publishing#4
planadecu merged 1 commit into
mainfrom
ci/oidc-trusted-publishing

Conversation

@planadecu

Copy link
Copy Markdown
Owner

Fixes the broken publish workflow (every run since March has failed with E404 — the NPM_TOKEN secret is invalid/expired, so npm has been stuck at 0.1.4 while the git version climbed to 0.2.2).

Switches to npm Trusted Publishing (OIDC): removes NODE_AUTH_TOKEN; pnpm 10 exchanges the workflow's OIDC id-token for a short-lived publish credential and attaches provenance automatically. No long-lived token to rotate.

Merge only after the Trusted Publisher is configured for ink-uplot on npmjs.com (GitHub Actions → repo planadecu/ink-uplot → workflow publish.yml). Merging triggers the workflow, which will publish the next patch version via OIDC.

Drop the dead NPM_TOKEN secret and publish via npm Trusted Publishing (OIDC).
pnpm 10 exchanges the workflow's id-token (id-token: write is already granted)
for a short-lived publish credential and attaches provenance automatically —
no long-lived token to expire. Requires a Trusted Publisher configured for
ink-uplot on npmjs.com pointing at this repo + publish.yml.
@planadecu
planadecu merged commit 1f5f1ef into main Jul 13, 2026
2 checks passed
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