Skip to content

Commit

Permalink
chore: improve release command
Browse files Browse the repository at this point in the history
  • Loading branch information
Barrior committed Feb 2, 2024
1 parent 7ebfbee commit a0c5a81
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class Release {
await this.buildProduct()
await this.publishToNpm()
this.commit()
logger.log('🌟 命令执行完毕 🎉')
}

/**
Expand Down Expand Up @@ -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 仓库完成`)
}
}

Expand Down

0 comments on commit a0c5a81

Please sign in to comment.