Skip to content

Commit

Permalink
build: change alpha/beta prerelease options to "next" (#17285)
Browse files Browse the repository at this point in the history
Angular no longer marks releases as "alpha" or "beta", instead using "next".
  • Loading branch information
jelbourn authored and mmalerba committed Oct 3, 2019
1 parent 3961544 commit 5a65a63
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tools/release/prompt/prerelease-labels.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {Version} from '../version-name/parse-version';

/** Inquirer choice for selecting an alpha pre-release label. */
const ALPHA_CHOICE = {value: 'alpha', name: 'Alpha pre-release'};

/** Inquirer choice for selecting an beta pre-release label. */
const BETA_CHOICE = {value: 'beta', name: 'Beta pre-release'};
const NEXT_CHOICE = {value: 'next', name: '"Next"" pre-release'};

/** Inquirer choice for selecting a release candidate label. */
const RC_CHOICE = {value: 'rc', name: 'Release candidate'};
Expand All @@ -17,10 +15,8 @@ export function determineAllowedPrereleaseLabels(version: Version) {
const {prereleaseLabel} = version;

if (!prereleaseLabel) {
return [ALPHA_CHOICE, BETA_CHOICE, RC_CHOICE];
} else if (prereleaseLabel === 'alpha') {
return [BETA_CHOICE, RC_CHOICE];
} else if (prereleaseLabel === 'beta') {
return [NEXT_CHOICE, RC_CHOICE];
} else if (prereleaseLabel === 'next') {
return [RC_CHOICE];
}

Expand Down

0 comments on commit 5a65a63

Please sign in to comment.