ITADN

`np --release-draft-only` broken in v11

#781Openfregante 创建于 2026-04-04
F
fregantecommented
<!--- Provide a short summary of the issue in the title above --> ## Description I've been using this command exclusively to generate release notes after an independent `npm publish` It seems that in the latest version this is no longer possible ## Steps to reproduce ``` npm version major npm publish git push --follow-tags np --release-draft-only ``` I get ``` Create a release draft on GitHub for webext-patterns (current: 2.0.0) Commits: - blah blah Commit Range: v1.5.1...main https://github.com/fregante/webext-patterns/compare/v1.5.1...main Registry: https://registry.npmjs.org/ ✖ Error: New version 2.0.0 should be higher than current version 2.0.0. at Version.setFrom (np/source/version.js:95:11) ``` ## Expected behavior The draft release is uploaded to GitHub and a tab is opened in the browser. Note that this works if I run `npx np@10 --release-draft-only` ## Environment np - 11.0.2 Node.js - 22.18.0. npm - 10.9.3 Git - 2.39.5 (Apple Git-154) OS - macOS 15.7.3
1 条评论