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
|
@ -144,7 +144,7 @@ async function updateVersionH (components) {
|
|||
const filePath = path.resolve(__dirname, '..', 'atom', 'common', 'atom_version.h')
|
||||
const data = await readFile(filePath, 'utf8')
|
||||
const arr = data.split('\n')
|
||||
const pre = components.pre != null ? `-${components.pre[0]}.${components.pre[1]}` : null
|
||||
const pre = components.pre && components.pre.length >= 2 ? `-${components.pre[0]}.${components.pre[1]}` : null
|
||||
|
||||
arr.forEach((item, idx) => {
|
||||
if (item.includes('#define ATOM_MAJOR_VERSION')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue