Commit 90ffff5a authored by Amanda Chen's avatar Amanda Chen

feat:优化

parent 662f2bb9
var exec = require("child_process").exec; var execSync = require("child_process").execSync;
function execute(cmd) { function execute(cmd) {
exec(cmd, function (error, stdout, stderr) { execSync(cmd, function (error, stdout, stderr) {
if (error) { if (error) {
console.error(error); console.error("发生错误", error);
process.exit(1); process.exit(1);
// throw error;
} else {
console.log(cmd);
} }
}); });
} }
...@@ -34,5 +37,4 @@ execute("git merge --no-ff develop"); ...@@ -34,5 +37,4 @@ execute("git merge --no-ff develop");
execute("git push"); execute("git push");
execute(`git tag -a ${params.tag} -m ${params.m}`); execute(`git tag -a ${params.tag} -m ${params.m}`);
execute(`git push --tags `); execute(`git push --tags `);
console.log("还是走了");
console.log("success");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment