Fix release tag validation in CI #64

Merged
eleith merged 1 commits from fix-release-tag-validation into main 2026-10-27 23:27:31 +00:00
2 changed files with 2 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ steps:
import { readFileSync, writeFileSync } from 'node:fs';
const tag = process.env.CI_COMMIT_TAG ?? '';
const match = /^@directory\/cli@((0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*))$/.exec(tag);
const match = /^@directory\\/cli@((0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*))$/.exec(tag);
if (!match || match[0] !== tag) {
throw new Error('Expected a stable @directory/cli@<major>.<minor>.<patch> tag');
}
+1 -1
View File
@@ -102,7 +102,7 @@ steps:
import { readFileSync, writeFileSync } from 'node:fs';
const tag = process.env.CI_COMMIT_TAG ?? '';
const match = /^@directory\/web@((0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*))$/.exec(tag);
const match = /^@directory\\/web@((0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*))$/.exec(tag);
if (!match || match[0] !== tag) {
throw new Error('Expected a stable @directory/web@<major>.<minor>.<patch> tag');
}