Skip to content

Commit eb6ac04

Browse files
committed
fix(ci): Node 24 for OIDC publish (npm requires Node >= 22.14.0)
1 parent ed748cf commit eb6ac04

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ jobs:
2121

2222
- uses: actions/setup-node@v4
2323
with:
24-
node-version: '20'
24+
# Node >= 22.14.0 is REQUIRED for npm OIDC trusted publishing.
25+
# Node 20 completes the token exchange but the registry still 403s
26+
# the PUT. Node 24 satisfies the requirement.
27+
node-version: '24'
2528
cache: 'npm'
2629

2730
- name: Upgrade npm (OIDC trusted publisher requires npm 11.5.1+)

0 commit comments

Comments
 (0)