Skip to content

fix: upgrade npm for OIDC trusted publishing#350

Merged
notgitika merged 1 commit intomainfrom
fix/npm-trusted-publishing
Feb 19, 2026
Merged

fix: upgrade npm for OIDC trusted publishing#350
notgitika merged 1 commit intomainfrom
fix/npm-trusted-publishing

Conversation

@tejaskash
Copy link
Contributor

Summary

  • Upgrade Node.js to 22.x and add npm install -g npm@latest to ensure npm >= 11.5.1 (required for OIDC trusted publishing)
  • Add --tag latest to npm publish (npm 11.5.1+ requires explicit --tag for prerelease versions)
  • Keep --provenance for build attestations (works since repo is public)

Context

Preemptive fix based on the same issues hit in aws/agentcore-l3-cdk-constructs. Without npm 11.5.1+, the OIDC token exchange for trusted publishing doesn't work. Without --tag latest, prerelease versions are rejected.

Test plan

  • Run the release workflow and verify publish succeeds

- Upgrade Node.js to 22.x and add npm upgrade to ensure 11.5.1+
  (required for OIDC trusted publishing)
- Add --tag latest for prerelease versions (npm 11.5.1+ requires it)
- Clean up permissions comments

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tejaskash tejaskash requested a review from a team February 19, 2026 22:31
@github-actions github-actions bot added the size/xs PR size: XS label Feb 19, 2026
@notgitika notgitika merged commit ec44120 into main Feb 19, 2026
16 of 18 checks passed
@notgitika notgitika deleted the fix/npm-trusted-publishing branch February 19, 2026 22:34
@github-actions
Copy link
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 43.33% 2860 / 6600
🔵 Statements 42.89% 3008 / 7012
🔵 Functions 45.49% 606 / 1332
🔵 Branches 48.23% 1871 / 3879
Generated in workflow #454 for commit 1f8638a by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants