fix(publish): drop npm workspaces field that broke npm version (EUNSUPPORTEDPROTOCOL)#194
Conversation
…UNSUPPORTEDPROTOCOL #191 added "workspaces": ["packages/*"] to the root package.json. This is a pnpm workspace (pnpm-workspace.yaml is the manifest); the npm-style field makes every npm command in the repo treat it as an npm workspace and try to reify the root lockfile, which dies on pnpm's workspace:* protocol: npm error code EUNSUPPORTEDPROTOCOL npm error Unsupported URL Type "workspace:": workspace:* That killed the 3.0.45 publish run (26949232814) at the Bump versions step (npm version's workspaces-update defaults to true). Plain npm install at the root fails identically, so the field could not have served the local-tooling purpose #191 cited. - remove the workspaces field from root package.json - harden all npm version calls in publish.yml / publish-persona.yml / publish-internal-personas.yml with --workspaces-update=false so a future reintroduction of npm workspaces config can't break publishing again Verified locally: npm version patch in packages/runtime reproduced the failure before the fix and succeeds after, with and without the flag. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
CodeAnt AI is reviewing your PR. |
|
Warning Review limit reached
More reviews will be available in 2 minutes and 31 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
CodeAnt AI finished reviewing your PR. |
User description
Problem
The 3.0.45 publish run (26949232814) failed at the Bump versions step:
Nothing was published — 3.0.45 is not on the registry, no release commit/tag was pushed, so a clean re-dispatch works after this lands.
Root cause
#191 (merged as 4f37303) added
"workspaces": ["packages/*"]to the rootpackage.json. This repo is a pnpm workspace (pnpm-workspace.yamlis the manifest); the npm-style field makes everynpmcommand treat the repo as an npm workspace.npm version(with its defaultworkspaces-update=true) then tries to reify the rootpackage-lock.jsonand Arborist dies on theworkspace:*protocol, which npm doesn't support.The field also couldn't have served the local-tooling purpose #191 cited: plain
npm installat the root fails with the identical error.Fix
workspacesfield from rootpackage.json(revert of that hunk of docs: spec —agentworkforce integrationsintegration & trigger discoverability (CLI + mcp-workforce tool) #191).--workspaces-update=falseto everynpm versioncall inpublish.yml,publish-persona.yml, andpublish-internal-personas.yml, so a future reintroduction of npm workspaces config can't take down publishing again.Verification
Reproduced locally:
npm version patch --no-git-tag-versioninpackages/runtimefails with EUNSUPPORTEDPROTOCOL on main, succeeds after this change — both with and without the new flag.🤖 Generated with Claude Code
CodeAnt-AI Description
Prevent publishing failures caused by npm workspace handling
What Changed
workspace:*errorImpact
✅ Fewer publish run failures✅ Successful version bumps in CI✅ Avoids broken releases from workspace protocol errors💡 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:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
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:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
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.