Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix prBackExists variable
  • Loading branch information
ernestognw committed Jun 16, 2023
commit 9ee9ddb1c08292b37c72272e6093a632d4b5df0b
4 changes: 2 additions & 2 deletions scripts/release/workflow/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down Expand Up @@ -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);

Expand Down