fix(pipeline): allow all tags and chore commits for releases
All checks were successful
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 1s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m5s
Monorepo Pipeline / 🧹 Lint (push) Successful in 2m13s
Monorepo Pipeline / 🏗️ Build (push) Successful in 3m53s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Directus (Base) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped

This commit is contained in:
2026-02-14 13:39:26 +01:00
parent f831a7e67e
commit 169cb83f69
4 changed files with 12 additions and 18 deletions

View File

@@ -8,7 +8,7 @@ import { execSync } from "child_process";
*/
function getVersionTag() {
// 0. Check arguments (passed from husky hook or manual run)
const argTag = process.argv.slice(2).find((arg) => arg.startsWith("v"));
const argTag = process.argv.slice(2).find((arg) => arg.match(/^v?\d/));
if (argTag) {
return argTag;
}
@@ -16,11 +16,11 @@ function getVersionTag() {
// 1. Check CI environment variables
if (
process.env.GITHUB_REF_NAME &&
process.env.GITHUB_REF_NAME.startsWith("v")
process.env.GITHUB_REF_NAME.match(/^v?\d/)
) {
return process.env.GITHUB_REF_NAME;
}
if (process.env.TAG && process.env.TAG.startsWith("v")) {
if (process.env.TAG && process.env.TAG.match(/^v?\d/)) {
return process.env.TAG;
}
@@ -29,7 +29,7 @@ function getVersionTag() {
const gitTag = execSync("git describe --tags --abbrev=0", {
encoding: "utf8",
}).trim();
if (gitTag && gitTag.startsWith("v")) {
if (gitTag && gitTag.match(/^v?\d/)) {
return gitTag;
}
} catch (e) {