Skip to content

Commit 2e687eb

Browse files
willwashburnclaude
andauthored
fix(ci): pin publish workflow to npm 11 (#351)
npm@latest resolved to npm 12.0.1 on 2026-07-13, which requires node ^22.22.2 while setup-node's toolcache serves 22.14.0 — publishes fail with EBADENGINE before reaching the OIDC flow. npm 11 satisfies the >= 11.5.1 trusted-publisher requirement and supports node >= 22.9. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 4bfc8d2 commit 2e687eb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,10 @@ jobs:
411411
cp "/tmp/relayfile-mount-binary/${{ matrix.mount_binary }}" "${{ matrix.path }}/bin/relayfile-mount"
412412
chmod 755 "${{ matrix.path }}/bin/relayfile-mount"
413413
414+
# Pinned to the npm 11 line (OIDC needs >= 11.5.1): @latest broke
415+
# 2026-07-13 when npm 12 dropped support for the runner's node 22.14.
414416
- name: Update npm for OIDC support
415-
run: npm install -g npm@latest
417+
run: npm install -g npm@11
416418

417419
- name: Dry run check
418420
if: github.event.inputs.dry_run == 'true'
@@ -494,8 +496,10 @@ jobs:
494496
cp "/tmp/relayfile-mount-binary/${{ steps.resolve-package.outputs.mount_binary }}" "${{ steps.resolve-package.outputs.path }}/bin/relayfile-mount"
495497
chmod 755 "${{ steps.resolve-package.outputs.path }}/bin/relayfile-mount"
496498
499+
# Pinned to the npm 11 line (OIDC needs >= 11.5.1): @latest broke
500+
# 2026-07-13 when npm 12 dropped support for the runner's node 22.14.
497501
- name: Update npm for OIDC support
498-
run: npm install -g npm@latest
502+
run: npm install -g npm@11
499503

500504
- name: Dry run check
501505
if: github.event.inputs.dry_run == 'true'

0 commit comments

Comments
 (0)