Skip to content

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

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

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

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Migrates npm publishing of @pickforge/picklab from NPM_TOKEN to trusted publishing (OIDC) — npm write tokens now expire after max 90 days; OIDC is tokenless and permanent.

Changes (release.yml only):

  • id-token: write permission.
  • Node 20 → 24 (OIDC needs npm ≥ 11.5.1; repo engines is >=20, all build/test steps run on Bun).
  • Drop NODE_AUTH_TOKEN and registry-url (its .npmrc template errors when the env var is unset); publish with --provenance (repository field already present in packages/cli).

Tested: YAML-only change; no runtime surface. First real OIDC publish happens on the next tag, after the trusted-publisher config on npmjs.com (tracked in pickforge/pickforge-platform#23).
Not release-note-worthy (CI-only), so no UNRELEASED.md entry.

Refs pickforge/pickforge-platform#23 (slice: PR 2 of 2)

Replace NPM_TOKEN auth with OIDC trusted publishing so publish tokens
never expire again. Bump the release job to Node 24 for npm >= 11.5.1
and enable provenance attestation.

Refs pickforge/pickforge-platform#23
@ElbertePlinio

Copy link
Copy Markdown
Member Author

@codex review

@ElbertePlinio

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 1610f2e5aa

ℹ️ 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 827773a 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