We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78c1ae5 commit 74f735eCopy full SHA for 74f735e
1 file changed
scripts/release/channel.ts
@@ -48,7 +48,8 @@ export function validateReleaseIdentity(
48
if (expectedBase && base !== expectedBase) {
49
throw new Error(`beta branch series ${base} does not match requested ${expectedBase}`);
50
}
51
- if (!new RegExp(`^${base.replaceAll(".", "\\.")}-beta\\.[0-9]+$`).test(version)) {
+ const betaVersion = /^([0-9]+\.[0-9]+\.[0-9]+)-beta\.[0-9]+$/.exec(version);
52
+ if (!betaVersion || betaVersion[1] !== base) {
53
throw new Error(`beta package version must match ${base}-beta.N; found ${version}`);
54
55
return { channel, version, distTag: "beta" };
0 commit comments