Skip to content

fix(release): support npm 12 publish output - #840

Merged
omegent-app[bot] merged 1 commit into
mainfrom
t3code/npm12-publish-shapes
Aug 3, 2026
Merged

fix(release): support npm 12 publish output#840
omegent-app[bot] merged 1 commit into
mainfrom
t3code/npm12-publish-shapes

Conversation

@omegent-app

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

Copy link
Copy Markdown
Contributor

Why

The release runner uses npm 12. Its npm pack --json output is keyed by package name, and duplicate-publish E403 responses put their text in error.message. The release tooling only handled npm 11 and earlier shapes.

What

Accept npm pack metadata returned as an array, a direct object, or a package-name-keyed object. Recognize duplicate-publish errors from npm's summary, detail, or message.

How

The staged package remains validated by requiring a files array after normalization. Changesets still skips only errors containing the known duplicate-version message.

Remarks

Verified with npm 12.0.2 against the core effect-app package and with a forced frozen pnpm install.


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

@omegent-app
omegent-app Bot marked this pull request as ready for review August 3, 2026 18:40
@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@840

effect-app

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

@effect-app/eslint-codegen-model

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

@effect-app/eslint-shared-config

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

@effect-app/infra

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

@effect-app/vue

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

@effect-app/vue-components

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

commit: e6edd2c

@omegent-app
omegent-app Bot merged commit f8271ed into main Aug 3, 2026
6 checks passed
@omegent-app
omegent-app Bot deleted the t3code/npm12-publish-shapes branch August 3, 2026 18:43
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