[LOCAL] Fix new release workflow script (4)

This commit is contained in:
Alex Hunt
2024-03-18 16:02:31 +00:00
parent 907bd438ff
commit 24b1da16ea
@@ -133,8 +133,8 @@ async function exitIfUnreleasedPackages() {
* value will be used instead, setting all packages to a single version.
*/
async function getNextMonorepoPackagesVersion() /*: Promise<string | null> */ {
// Based on @react-native/dev-middleware@0.74.5
const _0_74_MIN_PATCH = 6;
// Based on last publish before this strategy
const _0_74_MIN_PATCH = 75;
const packages = await getPackages({
includeReactNative: false,
@@ -149,8 +149,8 @@ async function getNextMonorepoPackagesVersion() /*: Promise<string | null> */ {
return null;
}
const {minor} = parseVersion(version, 'release');
patchVersion = Math.max(patchVersion, parseInt(minor, 10) + 1);
const {patch} = parseVersion(version, 'release');
patchVersion = Math.max(patchVersion, parseInt(patch, 10) + 1);
}
return '0.74.' + patchVersion;