Fix version validation for v0 in non-breaking policy. (#130)

This commit is contained in:
Anna Bocharova
2026-01-20 07:26:31 +00:00
committed by pullfrog[bot]
parent cfd7f45db9
commit ef9c1ae412
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ export function validateCompatibility(payloadVersion: string, actionVersion: str
const compatibilityRange = COMPATIBILITY_POLICY === 'same-features'
? `^${major}.${minor}.${major === 0 ? patch : 0}`
: `^${major}.${major === 0 ? minor : 0}.0`; // non-breaking
: `^${major}.${major === 0 ? minor : 0}.${major === 0 ? "x" : 0}`; // non-breaking
if (!semver.satisfies(actionVersion, compatibilityRange)) {
throw new Error(