From 3de0ab033836981f82dd0a97a6e91b5cdfed610e Mon Sep 17 00:00:00 2001 From: Mikeal Rogers Date: Mon, 9 Sep 2019 20:57:24 +0000 Subject: [PATCH] debug: print debugging --- merge-release-run.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/merge-release-run.js b/merge-release-run.js index d31c414..e0a9933 100644 --- a/merge-release-run.js +++ b/merge-release-run.js @@ -51,14 +51,17 @@ 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` + console.log({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"`) + console.log('configured') let current = execSync(`npm view ${pkg.name} version`).toString() - process.stdout.write(execSync(`npm version --allow-same-version=true --git-tag-version=false ${current} `)) + run(`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) + run(`git commit -a --amend --no-edit`) run(`git fetch`)