From 01d8a688111de59e27b42ba706f707e85b231c93 Mon Sep 17 00:00:00 2001 From: cmario92 Date: Thu, 1 Jul 2021 21:26:14 +0300 Subject: [PATCH] check if rc wording exists then stop v bump --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index faacb74..eaf4963 100644 --- a/index.js +++ b/index.js @@ -73,9 +73,11 @@ Toolkit.run(async (tools) => { version = 'prerelease'; } - // 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)))) { + // case: if default=prerelease, + // rc-wording is also set + // and does not include any of rc-wording + // then unset it and do not run + if (version === 'prerelease' && preReleaseWords !== '' && !messages.some((message) => preReleaseWords.some((word) => message.includes(word)))) { version = null; }