Skip to content

Commit 5bb3592

Browse files
author
hoanguyen
committed
add select tag when publish with release
1 parent 7619174 commit 5bb3592

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

release.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,21 @@ const main = async () => {
100100
if (!releaseTag) {
101101
const { tag } = await prompt({
102102
type: "select",
103-
name: "release",
103+
name: "tag",
104104
message: "Select release type",
105105
choices: ["next", "latest"].map((i) => `${i}`),
106106
});
107107
releaseTag = tag;
108+
109+
const { yes } = await prompt({
110+
type: "confirm",
111+
name: "yes",
112+
message: `Releasing with --tag ${releaseTag}. Confirm?`,
113+
});
114+
115+
if (!yes) {
116+
return;
117+
}
108118
}
109119

110120
// update package versions

0 commit comments

Comments
 (0)