From a0c5a81c9862e25b35a19f60f0eefe40e6c3395a Mon Sep 17 00:00:00 2001 From: Barrior Date: Fri, 2 Feb 2024 15:04:30 +0800 Subject: [PATCH] chore: improve release command --- scripts/release.mjs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/release.mjs b/scripts/release.mjs index 63880f6..828b67a 100644 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -41,6 +41,7 @@ class Release { await this.buildProduct() await this.publishToNpm() this.commit() + logger.log('🌟 命令执行完毕 🎉') } /** @@ -183,11 +184,13 @@ class Release { .join(' ') execaCommandSync(`git add ${commitFiles}`) execaCommandSync(`git commit -m chore(release):\\ v${this.newVersion} -n`) - execaCommandSync(`git tag v${this.newVersion}`) logger.log(`文件变更提交 Git 完成`) - // execaCommandSync('git push origin --tags') - // logger.log(`推送 Git 到远程 origin 仓库完成`) + execaCommandSync(`git tag v${this.newVersion}`) + logger.log(`git tag 打标完成`) + + execaCommandSync('git push origin --tags') + logger.log(`推送 Git 到远程 origin 仓库完成`) } }