Skip to content

Commit e9ebb5f

Browse files
bloveclaude
andauthored
chore(workflow): bump publish workflow to Node 24 for trusted publishing (#154)
The 0.0.2 publish workflow run failed with 'error retrieving identity token' on @ngaf/licensing and @ngaf/partial-json, and a 404 on @ngaf/a2ui. Root cause: actions/setup-node@v6.3.0 with node-version: 22 ships npm 10.9.x, which has partial OIDC code paths but doesn't fully implement the trusted-publishing flow against npm registry's OIDC endpoint. Node 22 LTS will never ship npm 11+ (locked); Node 24 ships npm 11.6+ out of the box (verified via nodejs.org/dist/index.json). Bump only the publish workflow's Node version. The rest of CI (lint/test/build/e2e) stays on Node 22 — the publish workflow doesn't share artifacts with those, so the version drift is harmless. Sources: - https://philna.sh/blog/2026/01/28/trusted-publishing-npm/ - npm/cli#8730 - https://docs.npmjs.com/trusted-publishers/ Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 1304b47 commit e9ebb5f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,14 @@ jobs:
2121
NPM_PUBLISHABLE_PROJECTS: chat,langgraph,ag-ui,render,a2ui,partial-json,licensing
2222
steps:
2323
- uses: actions/checkout@v6.0.2
24+
# Node 24 ships npm 11+ which fully implements npm trusted publishing
25+
# over OIDC. Node 22 is LTS but locked at npm 10.x, which has only
26+
# partial trusted-publishing support and fails OIDC on this registry.
27+
# The rest of CI (lint/test/build) runs on Node 22; this workflow
28+
# uses Node 24 specifically for the publish step.
2429
- uses: actions/setup-node@v6.3.0
2530
with:
26-
node-version: 22
31+
node-version: 24
2732
cache: npm
2833
registry-url: https://registry.npmjs.org
2934

0 commit comments

Comments
 (0)