Merge pull request #194 from kevcube/prerelease_not_working

version-type prerelease fix was flaky
This commit is contained in:
Phil 2022-11-03 22:54:29 +01:00 committed by GitHub
commit 36eed5885a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ const pkg = getPackageJson();
if (
version === 'prerelease' &&
preReleaseWords &&
!messages.some((message) => preReleaseWords.some((word) => message.includes(word)) && !versionType)
!messages.some((message) => preReleaseWords.some((word) => message.includes(word))) &&
!versionType
) {
version = null;
}