Skip to content

fix(ci): upgrade npm to v11 for OIDC trusted publishing#41

Merged
rhuanbarreto merged 2 commits into
mainfrom
fix/trusted-publishing-v2
Mar 3, 2026
Merged

fix(ci): upgrade npm to v11 for OIDC trusted publishing#41
rhuanbarreto merged 2 commits into
mainfrom
fix/trusted-publishing-v2

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • Add npm install -g npm@11 step in both release.yml and release-binaries.yml after actions/setup-node
  • Pin Node 22 and npm 11 in .prototools for consistent dev environments

actions/setup-node installs Node 20 with npm ~10.x, but OIDC trusted publishing requires npm >= 11.5.1. This caused the ENEEDAUTH failure in run #22642341513.

Test plan

  • Verify release workflow publishes main package via OIDC
  • Verify release-binaries workflow publishes platform packages via OIDC
  • Confirm proto use installs Node 22 and npm 11 locally

🤖 Generated with Claude Code

actions/setup-node installs Node 20 with npm 10.x, but OIDC trusted
publishing requires npm >= 11.5.1. Add explicit npm@11 upgrade step
in both release workflows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rhuanbarreto rhuanbarreto force-pushed the fix/trusted-publishing-v2 branch 2 times, most recently from 4c1873a to a6c051f Compare March 3, 2026 21:05
Ensures consistent Node LTS (Active) and npm versions across dev
environments. npm >= 11.5.1 is required for OIDC trusted publishing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@rhuanbarreto rhuanbarreto force-pushed the fix/trusted-publishing-v2 branch from a6c051f to 7bc0044 Compare March 3, 2026 21:07
@rhuanbarreto rhuanbarreto merged commit 3a3e490 into main Mar 3, 2026
6 checks passed
@rhuanbarreto rhuanbarreto deleted the fix/trusted-publishing-v2 branch March 3, 2026 21:12
@archgatebot archgatebot Bot mentioned this pull request Mar 3, 2026
rhuanbarreto added a commit that referenced this pull request Mar 3, 2026
* fix(ci): upgrade npm to v11 for OIDC trusted publishing support

actions/setup-node installs Node 20 with npm 10.x, but OIDC trusted
publishing requires npm >= 11.5.1. Add explicit npm@11 upgrade step
in both release workflows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: pin Node 24 and npm 11.11.0 in .prototools

Ensures consistent Node LTS (Active) and npm versions across dev
environments. npm >= 11.5.1 is required for OIDC trusted publishing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
rhuanbarreto added a commit that referenced this pull request Mar 4, 2026
* fix(ci): upgrade npm to v11 for OIDC trusted publishing support

actions/setup-node installs Node 20 with npm 10.x, but OIDC trusted
publishing requires npm >= 11.5.1. Add explicit npm@11 upgrade step
in both release workflows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: pin Node 24 and npm 11.11.0 in .prototools

Ensures consistent Node LTS (Active) and npm versions across dev
environments. npm >= 11.5.1 is required for OIDC trusted publishing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 4, 2026
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