fix version-type
This commit is contained in:
parent
3efc8c1af2
commit
51c1769211
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...");
|
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'])) {
|
if (process.env['INPUT_VERSION-TYPE'] && !allowedTypes.includes(process.env['INPUT_VERSION-TYPE'])) {
|
||||||
exitFailure('Invalid version type');
|
exitFailure('Invalid version type');
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue