check if rc wording exists then stop v bump
This commit is contained in:
parent
03c10b2a9d
commit
01d8a68811
8
index.js
8
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue