From 25b9e67f0421d9d88aae6c55ed218bd8e833e0b9 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 27 Jul 2018 21:42:45 +0800 Subject: [PATCH] update tag script --- antd-tools/gulpfile.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/antd-tools/gulpfile.js b/antd-tools/gulpfile.js index 336620da8..78e04c329 100644 --- a/antd-tools/gulpfile.js +++ b/antd-tools/gulpfile.js @@ -137,8 +137,8 @@ function tag () { execSync(`git config --global user.email ${process.env.GITHUB_USER_EMAIL}`) execSync(`git config --global user.name ${process.env.GITHUB_USER_NAME}`) execSync(`git tag ${version}`) - execSync(`git push origin ${version}:${version}`) - execSync('git push origin master:master') + execSync(`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design.git ${version}:${version}`) + execSync(`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design.git master:master`) console.log('tagged') } @@ -186,6 +186,12 @@ function githubRelease (done) { done() }) } + +gulp.task('tag', (done) => { + tag() + githubRelease(done) +}) + gulp.task('check-git', (done) => { runCmd('git', ['status', '--porcelain'], (code, result) => { if (/^\?\?/m.test(result)) {