build: remove older branch migration helpers (#36888)

* build: remove older branch migration helpers

* chore: fix typo
This commit is contained in:
Shelley Vohr
2023-01-12 18:05:26 +01:00
committed by GitHub
parent 3f764cbbd5
commit c953109f01
4 changed files with 10 additions and 19 deletions

View File

@@ -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');