fix: move deteched HEAD into branch and merge master

This commit is contained in:
Mikeal Rogers 2019-09-09 13:32:09 -07:00 committed by GitHub
parent 219bc5f01b
commit 7caf22f1a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,11 @@ const run = async () => {
let newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString()
console.log(newVersion)
run(`git commit -a --amend --no-edit`)
run(`git branch tmp`)
run(`git checkout master`)
run(`git merge tmp`)
run(`npm publish --access=public`)
run(`git push`)
await git.addTag(newVersion)