chore: publish tag alpha support

chore: update alpha and release workflows to include version consistency checks
This commit is contained in:
Tunglies
2025-06-05 20:56:15 +08:00
parent 80f550d67e
commit 44b7af0c6e
4 changed files with 60 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ const runRelease = () =>
// 2. 判断是否需要打 tag
function isSemver(version) {
return /^v?\d+\.\d+\.\d+(-alpha)?$/.test(version);
return /^v?\d+\.\d+\.\d+(-[0-9A-Za-z-.]+)?$/.test(version);
}
async function run() {