From 51c17692116ccde164efcd3868f68165851888d9 Mon Sep 17 00:00:00 2001 From: Kevin Mahoney Date: Tue, 25 Oct 2022 17:51:04 -0400 Subject: [PATCH] fix version-type --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 00d5b46..b706b98 100644 --- a/index.js +++ b/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;