build: 1.2.2

This commit is contained in:
Moy 2025-05-09 20:01:47 +08:00
parent f745fae9d8
commit c2169fcf30

View file

@ -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" });