fix: changing branchname

This commit is contained in:
Mikeal Rogers 2019-09-10 02:37:12 +00:00
parent 161b385fd6
commit aefbd07726
2 changed files with 3 additions and 6 deletions

View File

@ -23,10 +23,7 @@ remote_repo="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSIT
git config user.name "Merge Release"
git config user.email "merge-release@users.noreply.github.com"
git remote rm origin
git remote add origin "${remote_repo}"
git checkout master
git push -u origin
git remote add merge-release "${remote_repo}"
if [ "$GITHUB_REPOSITORY" = "mikeal/merge-release" ]
then

View File

@ -63,8 +63,8 @@ const run = async () => {
exec(`git checkout master`)
exec(`git merge tmp`)
exec(`npm publish --access=public`)
exec(`git push origin master`)
exec(`git push merge-release master`)
exec(`git tag ${newVersion}`)
exec(`git push origin --tags`)
exec(`git push merge-release --tags`)
}
run()