Skip to content

Commit 4fa3a60

Browse files
Juanzhengjitf
authored andcommitted
DevTools prepare release script resets patch version when bumping minor (facebook#22568)
1 parent 4ceb0cb commit 4fa3a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/devtools/prepare-release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function main() {
3838
const {major, minor, patch} = semver(previousVersion);
3939
const nextVersion =
4040
releaseType === 'minor'
41-
? `${major}.${minor + 1}.${patch}`
41+
? `${major}.${minor + 1}.0`
4242
: `${major}.${minor}.${patch + 1}`;
4343

4444
updatePackageVersions(previousVersion, nextVersion);

0 commit comments

Comments
 (0)