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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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');