File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ async function main(): Promise<void> {
35
35
`\n📦 ${ results . package } v${ results . version } is already published to NPM`
36
36
) ;
37
37
}
38
- else if ( options . greaterVersion && results . type === "lower" ) {
38
+ if ( results . type === "lower" ) {
39
39
console . log (
40
40
`\n📦 ${ results . package } v${ results . version } is lower than the version published to NPM`
41
41
) ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export async function npmPublish(opts: Options = {}): Promise<Results> {
35
35
36
36
let results : Results = {
37
37
package : manifest . name ,
38
- type : ( cmp === - 1 && "lower" ) || diff || "none" ,
38
+ type : ( options . greaterVersion && cmp === - 1 && "lower" ) || diff || "none" ,
39
39
version : manifest . version . raw ,
40
40
oldVersion : publishedVersion . raw ,
41
41
tag : options . tag ,
You can’t perform that action at this time.
0 commit comments