Skip to content

Commit 5daee0f

Browse files
committed
wip
1 parent f4c8adb commit 5daee0f

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

actions/release-tag-creation/current-version-validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { execSync } from 'node:child_process';
22
import semver from 'semver';
33

4-
import { ALLOWED_PATTERN } from './main.ts';
4+
export const ALLOWED_PATTERN = /^\d+\.\d+\.\d+(-beta\d+)?$/;
55

66
function fetchTagsByChannel(channel: 'stable' | 'beta'): string[] {
77
let tagsOutput: string;

actions/release-tag-creation/main.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { spawnSync } from 'node:child_process';
22
import { appendFileSync } from 'node:fs';
33
import semver from 'semver';
4-
import { checkVersionIsNext, fetchCompanionTag } from './current-version-validation.ts';
5-
6-
// X.Y.Z or X.Y.Z-betaN — no dot between "beta" and the number
7-
export const ALLOWED_PATTERN = /^\d+\.\d+\.\d+(-beta\d+)?$/;
4+
import { ALLOWED_PATTERN, checkVersionIsNext, fetchCompanionTag } from './current-version-validation.ts';
85

96
// ─── I/O helpers ──────────────────────────────────────────────────────────────
107

0 commit comments

Comments
 (0)