Skip to content
Open
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
3 changes: 2 additions & 1 deletion lib/updateDeps.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ const resolveNextVersion = (currentVersion, nextVersion, strategy = "override",
// Check the next pkg version against its current references.
// If it matches (`*` matches to any, `1.1.0` matches `1.1.x`, `1.5.0` matches to `^1.0.0` and so on)
// release will not be triggered, if not `override` strategy will be applied instead.
if ((strategy === "satisfy" || strategy === "inherit") && semver.satisfies(nextVersion, currentVersion)) {
// If currentVersion has "workspace" inside it means it shouldn't be checked with semver.satisfies as it's covered by yarn's/pnpm's/npm's workspaces versioning
if (currentVersion.includes("workspace") || ((strategy === "satisfy" || strategy === "inherit") && semver.satisfies(nextVersion, currentVersion))) {
return currentVersion;
}

Expand Down