From b3ccdec230a0985bdb3361e6f2fa72443ca842bb Mon Sep 17 00:00:00 2001 From: mariosch Date: Thu, 1 Jul 2021 11:53:11 +0300 Subject: [PATCH] Attempt to fix prerelease --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 263ece8..ff2d208 100644 --- a/index.js +++ b/index.js @@ -68,7 +68,7 @@ Toolkit.run(async (tools) => { // case: if default=prerelease, but rc-wording is also set // then unset it and do not run, when no rc words found in message - if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { + if (version === 'prerelease' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word))) && process.env.INPUT_DEFAULT != 'prerelease') { version = null; }