diff --git a/script/publish.js b/script/publish.js index 784b742..6b43bb6 100644 --- a/script/publish.js +++ b/script/publish.js @@ -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 {