mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[LOCAL] Fix new release workflow script (4)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user