update tag script

pull/165/head
tangjinzhou 6 years ago
parent 10c807ffc0
commit 25b9e67f04

@ -137,8 +137,8 @@ function tag () {
execSync(`git config --global user.email ${process.env.GITHUB_USER_EMAIL}`) execSync(`git config --global user.email ${process.env.GITHUB_USER_EMAIL}`)
execSync(`git config --global user.name ${process.env.GITHUB_USER_NAME}`) execSync(`git config --global user.name ${process.env.GITHUB_USER_NAME}`)
execSync(`git tag ${version}`) execSync(`git tag ${version}`)
execSync(`git push origin ${version}:${version}`) execSync(`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design.git ${version}:${version}`)
execSync('git push origin master:master') execSync(`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design.git master:master`)
console.log('tagged') console.log('tagged')
} }
@ -186,6 +186,12 @@ function githubRelease (done) {
done() done()
}) })
} }
gulp.task('tag', (done) => {
tag()
githubRelease(done)
})
gulp.task('check-git', (done) => { gulp.task('check-git', (done) => {
runCmd('git', ['status', '--porcelain'], (code, result) => { runCmd('git', ['status', '--porcelain'], (code, result) => {
if (/^\?\?/m.test(result)) { if (/^\?\?/m.test(result)) {

Loading…
Cancel
Save