Merge pull request #189 from kevcube/fix_version_type

Fix broken version-type rc
This commit is contained in:
Phil 2022-10-26 18:28:57 +02:00 committed by GitHub
commit a3bf9e05dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;