Skip to content

Pin npm to v11 in the publish workflow - #278

Merged
khaliqgant merged 1 commit into
mainfrom
fix/publish-npm-pin
Oct 6, 2026
Merged

khaliqgant merged 1 commit into
mainfrom
fix/publish-npm-pin

Conversation

@khaliqgant

@khaliqgant khaliqgant commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

User description

Summary

The Publish Packages run 37546230683 failed in the "Publish types" job with:

npm error notsup Required: {"node":"^22.22.2 || ^24.15.0 || >=26.0.0"}
npm error notsup Actual:   {"npm":"10.8.2","node":"v20.20.2"}

The job runs npm install -g npm@latest, which now installs npm 12, and npm 12 needs Node 22 or newer. The job uses Node 20. This pins npm to 11, which runs on Node 20 and supports trusted publishing.

Nothing was published by the failed run. The other publish jobs were cancelled and no tag was created.

🤖 Generated with Claude Code

Review in cubic


CodeAnt-AI Description

Fix package publishing on Node 20

What Changed

  • The publish workflow now uses an npm version compatible with Node 20, so it can proceed instead of failing before packages are published.

Impact

✅ Fewer failed package releases

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

npm@latest is now npm 12, which requires Node 22+, so the publish job
failed with EBADENGINE on Node 20 before publishing anything. Pin npm 11,
which runs on Node 20 and supports trusted publishing.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codeant-ai

codeant-ai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR c98f27e Oct 06, 2026 · 23:26 23:27

@codeant-ai

codeant-ai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@khaliqgant
khaliqgant merged commit f9a28db into main Oct 6, 2026
7 of 9 checks passed
@khaliqgant
khaliqgant deleted the fix/publish-npm-pin branch October 6, 2026 23:26
@my-senior-dev-pr-review

Copy link
Copy Markdown

🤖 My Senior Dev — Analysis Complete

👤 For @khaliqgant

📁 Expert in packages/ (236 edits) • ⚡ 2nd PR this month

View your contributor analytics →


📊 1 file reviewed • 2 need attention

⚠️ Needs Attention:

  • .github/workflows/publish.yml — The change impacts the CI workflow and could affect the reliability and compatibility of package publishing.

🚀 Open Interactive Review →

The full interface unlocks features not available in GitHub:

  • 💬 AI Chat — Ask questions on any file, get context-aware answers
  • 🔍 Smart Hovers — See symbol definitions and usage without leaving the diff
  • 📚 Code Archeology — Understand how files evolved over time (/archeology)
  • 🎯 Learning Insights — See how this PR compares to similar changes

💬 Chat here: @my-senior-dev explain this change — or try @chaos-monkey @security-auditor @optimizer @skeptic @junior-dev

📖 View all 12 personas & slash commands

You can interact with me by mentioning @my-senior-dev in any comment:

In PR comments or on any line of code:

  • Ask questions about the code or PR
  • Request explanations of specific changes
  • Get suggestions for improvements

Slash commands:

  • /help — Show all available commands
  • /archeology — See the history and evolution of changed files
  • /profile — Performance analysis and suggestions
  • /expertise — Find who knows this code best
  • /personas — List all available AI personas

AI Personas (mention to get their perspective):

Persona Focus
@chaos-monkey 🐵 Edge cases & failure scenarios
@skeptic 🤨 Challenge assumptions
@optimizer ⚡ Performance & efficiency
@security-auditor 🔒 Security vulnerabilities
@accessibility-advocate ♿ Inclusive design
@junior-dev 🌱 Simple explanations
@tech-debt-collector 💳 Code quality & shortcuts
@ux-champion 🎨 User experience
@devops-engineer 🚀 Deployment & scaling
@documentation-nazi 📚 Documentation gaps
@legacy-whisperer 🏛️ Working with existing code
@test-driven-purist ✅ Testing & TDD

For the best experience, view this PR on myseniordev.com — includes AI chat, file annotations, and interactive reviews.

@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant