fix semver parsing by removing
This commit is contained in:
+1
-1
@@ -128343,7 +128343,7 @@ function parseSemverTagFromRef(ref) {
|
||||
throw new Error(`The ref ${ref} is not a valid tag reference.`);
|
||||
}
|
||||
const rawTag = ref.replace(/^refs\/tags\//, '');
|
||||
const semverTag = semver_1.default.parse(rawTag);
|
||||
const semverTag = semver_1.default.parse(rawTag.replace(/^v/, ''));
|
||||
if (!semverTag) {
|
||||
throw new Error(`${rawTag} is not a valid semantic version tag, and so cannot be uploaded to the action package.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user