fix git push

This commit is contained in:
phips28 2019-10-26 20:28:45 +02:00
parent d47a174eda
commit aadd9ddd72
1 changed files with 5 additions and 1 deletions

View File

@ -35,8 +35,12 @@ const run = async () => {
let newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString()
console.log('new version:', newVersion)
exec(`git commit -a -m 'ci: ${commitMessage} ${newVersion}'`)
exec(`git push`)
const remoteRepo = `https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}.git`
console.log('remoteRepo:', remoteRepo)
exec(`git tag ${newVersion}`)
exec(`git push "${remoteRepo}" --follow-tags`)
exec(`git push --tags`)
}
run()