build: fix issues for stable release we fixed in 5-0-x (#18064)
* build: fix release notes generation * build: fix bump-version script for stable releases
This commit is contained in:
parent
fcf0af15de
commit
f2d41b7812
3 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,7 @@ const isStable = v => {
|
|||
const makeVersion = (components, delim, pre = preType.NONE) => {
|
||||
let version = [components.major, components.minor, components.patch].join(delim)
|
||||
if (pre === preType.PARTIAL) {
|
||||
version += `${delim}${components.pre[1]}`
|
||||
version += `${delim}${components.pre[1] || 0}`
|
||||
} else if (pre === preType.FULL) {
|
||||
version += `-${components.pre[0]}${delim}${components.pre[1]}`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue