From 775791f1142875a4737b0a6cf9d6a7973f839e63 Mon Sep 17 00:00:00 2001 From: Mikeal Rogers Date: Mon, 9 Sep 2019 22:03:35 +0000 Subject: [PATCH] debug: fully roll back --- merge-release-run.js | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/merge-release-run.js b/merge-release-run.js index fcb42f4..bb865a7 100644 --- a/merge-release-run.js +++ b/merge-release-run.js @@ -46,21 +46,11 @@ const run = async () => { version = 'minor' } - const runExec = str => process.stdout.write(execSync(str)) - - /* configure git */ - const { GITHUB_ACTOR, GITHUB_TOKEN, GITHUB_REPOSITORY } = process.env - const remote = `https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git` - console.log({ remote }) - runExec(`git remote add publish ${remote}`) - runExec(`git config user.name "Merge Release"`) - runExec(`git config user.email "merge-release@users.noreply.github.com"`) - let current = execSync(`npm view ${pkg.name} version`).toString() - runExec(`npm version --allow-same-version=true --git-tag-version=false ${current} `) + process.stdout.write(execSync(`npm version --allow-same-version=true --git-tag-version=false ${current} `)) let newVersion = execSync(`npm version --git-tag-version=false ${version}`).toString() console.log(newVersion) - runExec(`npm publish --access=public`) - runExec(`git checkout package.json`) + process.stdout.write(execSync(`npm publish --access=public`)) + process.stdout.write(execSync(`git checkout package.json`)) } run()