chore: prepare v2.0.0-rc.1 release (#7778)

This commit is contained in:
Sébastien Lorber 2022-07-14 18:17:25 +02:00 committed by GitHub
parent 443914a579
commit d255389e48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
134 changed files with 1147 additions and 672 deletions

View file

@ -21,14 +21,14 @@ const ArchivedVersionsDropdownItems = Object.entries(VersionsArchived).splice(
5,
);
// This probably only makes sense for the beta phase, temporary
function getNextBetaVersionName() {
const expectedPrefix = '2.0.0-beta.';
// This probably only makes sense for the alpha/beta/rc phase, temporary
function getNextVersionName() {
const expectedPrefix = '2.0.0-rc.';
const lastReleasedVersion = versions[0];
if (!lastReleasedVersion || !lastReleasedVersion.includes(expectedPrefix)) {
throw new Error(
'this code is only meant to be used during the 2.0 beta phase.',
'this code is only meant to be used during the 2.0 alpha/beta/rc phase.',
);
}
const version = parseInt(lastReleasedVersion.replace(expectedPrefix, ''), 10);
@ -310,7 +310,7 @@ const config = {
})(),
versions: {
current: {
label: `${getNextBetaVersionName()} 🚧`,
label: `${getNextVersionName()} 🚧`,
},
},
},