Skip to content

Commit 4a43960

Browse files
committed
update tag script
1 parent ad2ee7d commit 4a43960

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

antd-tools/gulpfile.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ function tag () {
137137
execSync(`git config --global user.email ${process.env.GITHUB_USER_EMAIL}`)
138138
execSync(`git config --global user.name ${process.env.GITHUB_USER_NAME}`)
139139
execSync(`git tag ${version}`)
140-
execSync(`git push origin ${version}:${version}`)
141-
execSync('git push origin master:master')
140+
execSync(`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design.git ${version}:${version}`)
141+
execSync(`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design.git master:master`)
142142
console.log('tagged')
143143
}
144144

@@ -186,6 +186,12 @@ function githubRelease (done) {
186186
done()
187187
})
188188
}
189+
190+
gulp.task('tag', (done) => {
191+
tag()
192+
githubRelease(done)
193+
})
194+
189195
gulp.task('check-git', (done) => {
190196
runCmd('git', ['status', '--porcelain'], (code, result) => {
191197
if (/^\?\?/m.test(result)) {

0 commit comments

Comments
 (0)