Skip to content

Commit fc19a79

Browse files
authored
Change release cycle prBackExists definition (#4365)
1 parent c95a445 commit fc19a79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/release/workflow/state.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function shouldRunMerge({
4747
hasPendingChangesets,
4848
prBackExists,
4949
}) {
50-
return isReleaseBranch && isPush && !prerelease && isCurrentFinalVersion && !hasPendingChangesets && prBackExists;
50+
return isReleaseBranch && isPush && !prerelease && isCurrentFinalVersion && !hasPendingChangesets && !prBackExists;
5151
}
5252

5353
async function getState({ github, context, core }) {
@@ -79,7 +79,7 @@ async function getState({ github, context, core }) {
7979
state: 'open',
8080
});
8181

82-
state.prBackExists = prs.length === 0;
82+
state.prBackExists = prs.length !== 0;
8383

8484
state.isPublishedOnNpm = await isPublishedOnNpm(packageName, version);
8585

0 commit comments

Comments
 (0)