Fix release post not parsing certain versions correctly (#35363)
This commit is contained in:
parent
a18f1bde92
commit
f10f740958
|
@ -51,7 +51,14 @@ const program = new Command()
|
|||
|
||||
if ( ! options.previousVersion && previousVersion ) {
|
||||
// e.g 6.8.0 -> 6.7.0
|
||||
previousVersion.minor -= 1;
|
||||
previousVersion.major =
|
||||
previousVersion.minor === 0
|
||||
? previousVersion.major - 1
|
||||
: previousVersion.major;
|
||||
|
||||
previousVersion.minor =
|
||||
previousVersion.minor === 0 ? 9 : previousVersion.minor - 1;
|
||||
|
||||
previousVersion.format();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue