mirror of
https://github.com/moyf/easy-copy.git
synced 2026-07-22 05:43:47 +00:00
build: 1.2.2
This commit is contained in:
parent
f745fae9d8
commit
c2169fcf30
1 changed files with 0 additions and 14 deletions
|
|
@ -25,20 +25,6 @@ try {
|
|||
console.log(`🏷️ 创建标签: ${version}`);
|
||||
execSync(`git tag ${version}`, { stdio: "inherit" });
|
||||
|
||||
// 等待确认后执行
|
||||
const confirm = await new Promise((resolve) => {
|
||||
console.log(`
|
||||
请确认是否继续?
|
||||
输入 'y' 继续,输入 'n' 取消。
|
||||
`);
|
||||
const input = readLineSync.question('');
|
||||
resolve(input === 'y');
|
||||
});
|
||||
if (!confirm) {
|
||||
console.log('取消发布');
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
// 推送标签到远程
|
||||
console.log("📤 推送标签到远程...");
|
||||
execSync("git push --tags", { stdio: "inherit" });
|
||||
|
|
|
|||
Loading…
Reference in a new issue