Skip to content

Commit

Permalink
fix: clean semver before validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksteamdev committed Jan 3, 2025
1 parent 6b387bc commit 7e6394b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { type } from "arktype";
import { clean } from "semver";

const envVar = type({
GITHUB_DOWNLOAD_URL: "string.url",
GITHUB_REF_NAME: "string.semver",
GITHUB_REF_NAME: type("string")
.pipe((ref) => clean(ref))
.to("string.semver"),
});

/**
Expand Down

0 comments on commit 7e6394b

Please sign in to comment.