Skip to content

Commit

Permalink
DevTools prepare release script resets patch version when bumping min…
Browse files Browse the repository at this point in the history
…or (#22568)
  • Loading branch information
Juan authored Oct 15, 2021
1 parent 930c9e7 commit 1def0a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/devtools/prepare-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1def0a4

Please sign in to comment.