fix: changing branchname
This commit is contained in:
parent
161b385fd6
commit
aefbd07726
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue