From 6d7da29bb3ec94807c7a4165c6c1f83264e7aeda Mon Sep 17 00:00:00 2001 From: Mikeal Rogers Date: Mon, 9 Sep 2019 20:51:28 +0000 Subject: [PATCH] debug: use publish remote instead of master --- merge-release-run.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/merge-release-run.js b/merge-release-run.js index 8a3dd2f..d31c414 100644 --- a/merge-release-run.js +++ b/merge-release-run.js @@ -51,8 +51,7 @@ const run = async () => { /* configure git */ const { GITHUB_ACTOR, GITHUB_TOKEN, GITHUB_REPOSITORY } = process.env const remote = `https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git` - run(`git remote rm origin`) - run(`git remote add origin ${remote}`) + run(`git remote add publish ${remote}`) run(`git config user.name "Merge Release"`) run(`git config user.email "merge-release@users.noreply.github.com"`) @@ -68,8 +67,8 @@ const run = async () => { run(`git merge tmp`) run(`npm publish --access=public`) - run(`git push origin master`) + run(`git push publish master`) await git.addTag(newVersion) - await git.pushTags('origin') + await git.pushTags('publish') } run()