Skip to content

ci(release): npm ≥ 11.5.1 so OIDC trusted publishing works#598

Merged
NagyVikt merged 1 commit into
mainfrom
agent/claude/release-workflow-npm-11-for-oidc-trusted-2026-06-12-17-44
Jun 12, 2026
Merged

ci(release): npm ≥ 11.5.1 so OIDC trusted publishing works#598
NagyVikt merged 1 commit into
mainfrom
agent/claude/release-workflow-npm-11-for-oidc-trusted-2026-06-12-17-44

Conversation

@NagyVikt

Copy link
Copy Markdown
Collaborator

Summary

The Release run on the 0.8.0 commit showed changesets/action choosing npm trusted publishing ('No NPM_TOKEN found, but OIDC is available') — the workflow already grants id-token: write. It still hit ENEEDAUTH because Node 20 bundles npm 10.x and the OIDC token exchange needs npm ≥ 11.5.1. This adds one step upgrading npm before install.

Remaining (owner-only, no secrets needed): on npmjs.com → colonyq → Settings → Trusted Publisher → GitHub Actions with owner opencue, repo colony, workflow release.yml. Once set, re-running the Release workflow publishes colonyq@0.8.0 with no NPM_TOKEN at all.

Test plan

  • Workflow-only change; CI gates run on this PR. Verified the npm version requirement against npm's trusted-publishing docs (OIDC support landed in 11.5.1).

🤖 Generated with Claude Code

changesets/action detects OIDC (id-token: write is set) when NPM_TOKEN
is absent, but Node 20 bundles npm 10.x which cannot do the OIDC
exchange — publish died with ENEEDAUTH. Upgrading npm completes the
runner side; the npmjs.com side needs colonyq to list opencue/colony +
release.yml as a trusted publisher.
@NagyVikt NagyVikt merged commit 01a43f0 into main Jun 12, 2026
8 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