Merge pull request #189 from kevcube/fix_version_type
Fix broken version-type rc
This commit is contained in:
commit
a3bf9e05dc
2
index.js
2
index.js
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue