mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
DevTools prepare release script resets patch version when bumping minor (#22568)
This commit is contained in:
@@ -38,7 +38,7 @@ async function main() {
|
||||
const {major, minor, patch} = semver(previousVersion);
|
||||
const nextVersion =
|
||||
releaseType === 'minor'
|
||||
? `${major}.${minor + 1}.${patch}`
|
||||
? `${major}.${minor + 1}.0`
|
||||
: `${major}.${minor}.${patch + 1}`;
|
||||
|
||||
updatePackageVersions(previousVersion, nextVersion);
|
||||
|
||||
Reference in New Issue
Block a user