build: remove older branch migration helpers (#36888)
* build: remove older branch migration helpers * chore: fix typo
This commit is contained in:
parent
3f764cbbd5
commit
c953109f01
4 changed files with 10 additions and 19 deletions
|
@ -73,8 +73,7 @@ async function nextNightly (v) {
|
|||
const pre = `nightly.${getCurrentDate()}`;
|
||||
|
||||
const branch = (await GitProcess.exec(['rev-parse', '--abbrev-ref', 'HEAD'], ELECTRON_DIR)).stdout.trim();
|
||||
// TODO(main-migration): Simplify once main branch is renamed
|
||||
if (branch === 'master' || branch === 'main') {
|
||||
if (branch === 'main') {
|
||||
next = semver.inc(await getLastMajorForMain(), 'major');
|
||||
} else if (isStable(v)) {
|
||||
next = semver.inc(next, 'patch');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue