Skip to content

Commit

Permalink
release: v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MuyianKing committed Nov 6, 2024
1 parent 18f66c8 commit 1fcdf26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ function publish() {
child_process.exec('git add .', (error) => {
console.log('error1', error)

child_process.exec('git cz', (error) => {
const version = `v${_config.version}`
child_process.exec(`git commit -m"release: ${version}"`, (error) => {
console.log('error2', error)

child_process.exec(`git push && git tag ${version} && git push origin ${version}`, () => {
console.log('success')
})
})
})
} else {
Expand Down

0 comments on commit 1fcdf26

Please sign in to comment.