From fc19a7947c316d5047148762298dc650b5c0ed42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20Garc=C3=ADa?= Date: Mon, 19 Jun 2023 16:33:21 -0600 Subject: [PATCH] Change release cycle `prBackExists` definition (#4365) --- scripts/release/workflow/state.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release/workflow/state.js b/scripts/release/workflow/state.js index 5cfaafb86..914e8de02 100644 --- a/scripts/release/workflow/state.js +++ b/scripts/release/workflow/state.js @@ -47,7 +47,7 @@ function shouldRunMerge({ hasPendingChangesets, prBackExists, }) { - return isReleaseBranch && isPush && !prerelease && isCurrentFinalVersion && !hasPendingChangesets && prBackExists; + return isReleaseBranch && isPush && !prerelease && isCurrentFinalVersion && !hasPendingChangesets && !prBackExists; } async function getState({ github, context, core }) { @@ -79,7 +79,7 @@ async function getState({ github, context, core }) { state: 'open', }); - state.prBackExists = prs.length === 0; + state.prBackExists = prs.length !== 0; state.isPublishedOnNpm = await isPublishedOnNpm(packageName, version);