From a86ccb69172078a57ab4d82c0e0303ebeb6b50d0 Mon Sep 17 00:00:00 2001 From: Chris Thoburn Date: Fri, 23 Feb 2024 01:34:20 -0800 Subject: [PATCH] chore: publish does not care about from being for prerelease --- release/utils/flags-config.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/release/utils/flags-config.ts b/release/utils/flags-config.ts index a5536f9a59c..35c33dc6738 100644 --- a/release/utils/flags-config.ts +++ b/release/utils/flags-config.ts @@ -194,10 +194,6 @@ export const publish_flags_config: FlagConfig = { if (semver.valid(value) === null) { throw new Error(`Version passed to promote is not a valid semver version`); } - const versionInfo = semver.parse(value); - if (versionInfo?.prerelease?.length) { - throw new Error(`Version passed to promote cannot be prerelease version`); - } }, }, upstream: {