Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcube authored and Kevin Mahoney committed Oct 26, 2022
1 parent 279b636 commit 9331590
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const pkg = getPackageJson();
console.log("Couldn't find any commits in this event, incrementing patch version...");
}

const allowedTypes = ['major', 'minor', 'patch', 'prerelease']
const allowedTypes = ['major', 'minor', 'patch', 'prerelease'];
if (process.env['INPUT_VERSION-TYPE'] && !allowedTypes.includes(process.env['INPUT_VERSION-TYPE'])) {
exitFailure('Invalid version type');
return;
Expand Down Expand Up @@ -103,7 +103,7 @@ const pkg = getPackageJson();
}),
)
) {
if (foundWord !== ''){
if (foundWord !== '') {
preid = foundWord.split('-')[1];
}
version = 'prerelease';
Expand All @@ -119,8 +119,7 @@ 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;
}
Expand Down

0 comments on commit 9331590

Please sign in to comment.