Skip to content

Commit c5abf59

Browse files
committed
require confirmation before closing release
1 parent b896e0a commit c5abf59

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/scripts/release.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,16 @@ program
163163
process.exit(1);
164164
}
165165

166+
process.on("SIGINT", () => {
167+
console.log(
168+
"\nRelease process interrupted. Please confirm to exit (ctrl-c again to confirm).",
169+
);
170+
process.once("SIGINT", () => {
171+
console.log("Exiting...");
172+
process.exit(1);
173+
});
174+
});
175+
166176
await cleanDist();
167177
const version = await getLocalVersion();
168178
const bumpedVersion = bumpVersion(version, type);

0 commit comments

Comments
 (0)