Skip to content

ci: publish through npm trusted publishing - #125

Merged
Agustin-Delgado merged 1 commit into
mainfrom
ci/trusted-publishing
Oct 15, 2026
Merged

Agustin-Delgado merged 1 commit into
mainfrom
ci/trusted-publishing

Conversation

@Agustin-Delgado

Copy link
Copy Markdown
Collaborator

The Release workflow now publishes through npm trusted publishing (OIDC), and not with the NPM_TOKEN secret.

  • The workflow gets id-token: write. pnpm 11 changes the OIDC token of the job into a short npm token for @human-kit/ui, and it adds the provenance statement.
  • The step that wrote the npm token to ~/.npmrc is removed, and the Publish step no longer gets NPM_TOKEN or NODE_AUTH_TOKEN. Without a token, a failed OIDC exchange stops the publish: it does not fall back to an old credential.
  • The trusted publisher on npm is human-kit/ui, workflow release.yml, with direct publish.
  • scripts/publish.mjs moves the prerelease dist-tag with npm dist-tag add. Trusted publishing does not authorize that by default, thus a comment says what to do before the next prerelease. The package is not in prerelease mode now.

npm marks a new trusted publisher as "pending" until the first publish through it.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
human-kit-ui-docs Ready Ready Preview Oct 15, 2026 6:27pm UTC

@Agustin-Delgado
Agustin-Delgado merged commit 334de3a into main Oct 15, 2026
8 checks passed

This branch was successfully deployed

1 active deployment
Preview — 4fb3b8b0 Deployed Oct 15, 2026 by vercel[bot]
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