fix(release): fail when stable version is already published

This commit is contained in:
若麒
2026-07-14 16:05:45 +08:00
parent cbf871c8d6
commit 91cd68b46e
2 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -54,8 +54,9 @@ try {
log(`${pkg.name}@${version}: ${exists ? "already published" : "to publish"}`);
}
if (packages.every((pkg) => published.get(pkg.key))) {
log("\nall packages already published; nothing to do.");
process.exit(0);
throw new Error(
`version ${version} is already published for all target packages; bump the package versions before retrying.`,
);
}
// Publish in dependency order (core → runtime → commands → cli [→ kscli]).