fix version-type

This commit is contained in:
Kevin Mahoney 2022-10-25 17:51:04 -04:00
parent 3efc8c1af2
commit 51c1769211
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ const pkg = getPackageJson();
console.log("Couldn't find any commits in this event, incrementing patch version...");
}
const allowedTypes = ['major', 'minor', 'patch', 'rc']
const allowedTypes = ['major', 'minor', 'patch', 'prerelease']
if (process.env['INPUT_VERSION-TYPE'] && !allowedTypes.includes(process.env['INPUT_VERSION-TYPE'])) {
exitFailure('Invalid version type');
return;