Skip to content

ci: publish to npm via trusted publishing (OIDC)#24

Merged
ElbertePlinio merged 1 commit into
mainfrom
ci/npm-trusted-publishing
Jul 10, 2026
Merged

ci: publish to npm via trusted publishing (OIDC)#24
ElbertePlinio merged 1 commit into
mainfrom
ci/npm-trusted-publishing

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Migrates npm publishing from NPM_TOKEN to trusted publishing (OIDC). npm write tokens are now capped at 90 days, so token auth guarantees recurring expiry breakage; OIDC is tokenless and permanent.

Changes:

  • publish.yml: id-token: write permission, drop NODE_AUTH_TOKEN and registry-url (its .npmrc template errors when the env var is unset), publish with --provenance.
  • All 7 packages: add repository field (required for provenance attestation).

Tested: bun run check green; JSON validity of all package.json files verified.
Not tested yet: an actual OIDC publish — requires the trusted-publisher config on npmjs.com first (tracked in #23). Merging is safe: publish only runs on tags/dispatch.

No release-note-worthy product change (packages repo, CI-only behavior).

Refs #23 (slice: PR 1 of 2; PR 2 is the same migration in picklab)

Replace NPM_TOKEN auth with OIDC trusted publishing so publish tokens
never expire again. Add repository metadata to all packages and enable
provenance attestation.

Refs #23
@ElbertePlinio

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: a18524f476

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ElbertePlinio ElbertePlinio merged commit 32882e7 into main Jul 10, 2026
1 check passed
@ElbertePlinio ElbertePlinio deleted the ci/npm-trusted-publishing branch July 10, 2026 01:00
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