Skip to content

fix(ci): prevent npm workspace protocol error in releases#1140

Merged
abueide merged 2 commits intomasterfrom
fix/npm-workspace-protocol
Mar 3, 2026
Merged

fix(ci): prevent npm workspace protocol error in releases#1140
abueide merged 2 commits intomasterfrom
fix/npm-workspace-protocol

Conversation

@abueide
Copy link
Contributor

@abueide abueide commented Mar 3, 2026

Summary

  • Add .npmrc with workspaces-update=false to prevent npm version from reifying workspace dependencies during the semantic-release prepare step
  • This fixes the EUNSUPPORTEDPROTOCOL: Unsupported URL Type "workspace:": workspace:^ error when running beta/production releases
  • Update browserslist caniuse-lite database

Context

@semantic-release/npm runs npm version to bump package versions. npm 10+ traverses the workspace root and tries to resolve all dependencies, including Yarn's workspace:^ protocol which npm doesn't understand. Setting workspaces-update=false prevents this traversal.

Test plan

  • Merge and run beta release to verify the workspace protocol error is resolved

🤖 Generated with Claude Code

abueide and others added 2 commits March 2, 2026 19:46
Prevents npm from reifying workspace dependencies during `npm version`,
which fails with EUNSUPPORTEDPROTOCOL on Yarn's `workspace:^` protocol.
This allows @semantic-release/npm's prepare step to succeed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abueide abueide merged commit 61e2dae into master Mar 3, 2026
5 checks passed
@abueide abueide deleted the fix/npm-workspace-protocol branch March 3, 2026 01:49
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