should work this time

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-05-12 10:45:48 -04:00
1 parent 3b49dc9318
commit 3f3f0d1554
1 file changed
+3 -4
+3 -4
View File
@@ -111,7 +111,6 @@ npmVersionArgs.push("--git-tag-version false");
execSync(npmVersionArgs.join(" "), { stdio: "ignore" }); execSync(npmVersionArgs.join(" "), { stdio: "ignore" });
const newBranchName = execSync("git branch --show-current", { encoding: "utf-8" });
const newVersion = new SemVer(readJsonSync("./package.json").version); const newVersion = new SemVer(readJsonSync("./package.json").version);
const getMergedPrsArgs = [ const getMergedPrsArgs = [
@@ -181,14 +180,14 @@ if (maintenencePrs.length > 0) {
); );
} }
execSync(`git push --set-upstream origin ${newBranchName}`); execSync(`git push origin HEAD -u`);
const prBody = prBodyLines.join("\n"); const prBody = prBodyLines.join("\n");
const createPrArgs = [ const createPrArgs = [
"pr", "pr",
"create", "create",
"--base", `origin/${prBase}`, "--base", prBase,
"--head", `origin/${newBranchName}`,
"--title", `release ${newVersion.format()}`, "--title", `release ${newVersion.format()}`,
"--label", "skip-changelog", "--label", "skip-changelog",
"--body-file", "-", "--body-file", "-",