Skip to content

Commit 6a5b360

Browse files
committed
Attempting to fix greater-version output
1 parent 63f31bc commit 6a5b360

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/action/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function main(): Promise<void> {
3535
`\n📦 ${results.package} v${results.version} is already published to NPM`
3636
);
3737
}
38-
else if (options.greaterVersion && results.type === "lower") {
38+
if (results.type === "lower") {
3939
console.log(
4040
`\n📦 ${results.package} v${results.version} is lower than the version published to NPM`
4141
);

src/npm-publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function npmPublish(opts: Options = {}): Promise<Results> {
3535

3636
let results: Results = {
3737
package: manifest.name,
38-
type: (cmp === -1 && "lower") || diff || "none",
38+
type: (options.greaterVersion && cmp === -1 && "lower") || diff || "none",
3939
version: manifest.version.raw,
4040
oldVersion: publishedVersion.raw,
4141
tag: options.tag,

0 commit comments

Comments
 (0)