From 7f928f6962206b4484c6b84ce2371b5e9c058c01 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 23 Feb 2023 16:16:11 -0500 Subject: [PATCH] Resolve comments Signed-off-by: Sebastian Malton --- packages/release-tool/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/release-tool/src/index.ts b/packages/release-tool/src/index.ts index 4a29c3fd45..675127cba5 100755 --- a/packages/release-tool/src/index.ts +++ b/packages/release-tool/src/index.ts @@ -22,6 +22,7 @@ const repoRoot = (await exec("git rev-parse --show-toplevel")).stdout; if (process.cwd() !== repoRoot) { console.error("It looks like you are running this script from the 'scripts' directory. This script assumes it is run from the root of the git repo"); + process.exit(1); } const currentVersion = new SemVer(JSON.parse((await readFile("./lerna.json", "utf-8"))).version); @@ -229,7 +230,9 @@ const prBodyLines = [ ]; const prBody = prBodyLines.join("\n"); -await exec(`git push --set-upstream origin ${prBranch}`); +await spawn("git", ["push", "--set-upstream", "origin", prBranch], { + stdio: "inherit", +}); await spawn("gh", [ "pr",