case: if default=prerelease, but rc-wording is also set
then unset it and do not run, when no rc words found in message
This commit is contained in:
parent
a6841af4ed
commit
7985e8de63
6
index.js
6
index.js
|
@ -66,6 +66,12 @@ 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)))) {
|
||||||
|
version = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (version === 'prerelease' && preid) {
|
if (version === 'prerelease' && preid) {
|
||||||
version = `${version} --preid=${preid}`;
|
version = `${version} --preid=${preid}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue