fix: move deteched HEAD into branch and merge master
This commit is contained in:
parent
219bc5f01b
commit
7caf22f1a6
|
@ -61,6 +61,11 @@ const run = async () => {
|
||||||
let newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString()
|
let newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString()
|
||||||
console.log(newVersion)
|
console.log(newVersion)
|
||||||
run(`git commit -a --amend --no-edit`)
|
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(`npm publish --access=public`)
|
||||||
run(`git push`)
|
run(`git push`)
|
||||||
await git.addTag(newVersion)
|
await git.addTag(newVersion)
|
||||||
|
|
Loading…
Reference in New Issue