Skip to content

fix(release): handle npm errors without summaries - #839

Merged
omegent-app[bot] merged 3 commits into
mainfrom
t3code/changesets-missing-summary
Aug 3, 2026
Merged

fix(release): handle npm errors without summaries#839
omegent-app[bot] merged 3 commits into
mainfrom
t3code/changesets-missing-summary

Conversation

@omegent-app

@omegent-app omegent-app Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Why

npm 12 can return an E403 publish error without a summary. Changesets assumes every summary is a string and crashes while classifying the error, hiding npm's actionable detail and preventing duplicate-publish races from completing cleanly.

What

Patch @changesets/cli@2.31.0 to safely inspect npm errors and recognize the existing “already published” message in either summary or detail.

How

Duplicate versions are silently skipped as Changesets intends. An E403 that does not contain the duplicate-publish message remains a failure and retains its npm diagnostics.

Remarks

This is release-tooling only. It is intentionally narrow and can be removed once Changesets ships the equivalent guard.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@patroza
patroza marked this pull request as ready for review August 3, 2026 18:32
@pkg-pr-new

pkg-pr-new Bot commented Aug 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

@effect-app/cli

npm i https://pkg.pr.new/effect-app/libs/@effect-app/cli@839

effect-app

npm i https://pkg.pr.new/effect-app/libs/effect-app@839

@effect-app/eslint-codegen-model

npm i https://pkg.pr.new/effect-app/libs/@effect-app/eslint-codegen-model@839

@effect-app/eslint-shared-config

npm i https://pkg.pr.new/effect-app/libs/@effect-app/eslint-shared-config@839

@effect-app/infra

npm i https://pkg.pr.new/effect-app/libs/@effect-app/infra@839

@effect-app/vue

npm i https://pkg.pr.new/effect-app/libs/@effect-app/vue@839

@effect-app/vue-components

npm i https://pkg.pr.new/effect-app/libs/@effect-app/vue-components@839

commit: 3a3d344

@omegent-app
omegent-app Bot merged commit f3fc604 into main Aug 3, 2026
6 checks passed
@omegent-app
omegent-app Bot deleted the t3code/changesets-missing-summary branch August 3, 2026 18:34
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.

0 participants