Skip to content

Commit 24b1da1

Browse files
committed
[LOCAL] Fix new release workflow script (4)
1 parent 907bd43 commit 24b1da1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/releases-local/trigger-react-native-release.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ async function exitIfUnreleasedPackages() {
133133
* value will be used instead, setting all packages to a single version.
134134
*/
135135
async function getNextMonorepoPackagesVersion() /*: Promise<string | null> */ {
136-
// Based on @react-native/[email protected]
137-
const _0_74_MIN_PATCH = 6;
136+
// Based on last publish before this strategy
137+
const _0_74_MIN_PATCH = 75;
138138

139139
const packages = await getPackages({
140140
includeReactNative: false,
@@ -149,8 +149,8 @@ async function getNextMonorepoPackagesVersion() /*: Promise<string | null> */ {
149149
return null;
150150
}
151151

152-
const {minor} = parseVersion(version, 'release');
153-
patchVersion = Math.max(patchVersion, parseInt(minor, 10) + 1);
152+
const {patch} = parseVersion(version, 'release');
153+
patchVersion = Math.max(patchVersion, parseInt(patch, 10) + 1);
154154
}
155155

156156
return '0.74.' + patchVersion;

0 commit comments

Comments
 (0)