Skip to content

Commit 75ba930

Browse files
committed
refactor: remove tags from update tags result status text
1 parent 840c3d0 commit 75ba930

2 files changed

Lines changed: 5 additions & 13 deletions

File tree

lib/package.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -439,15 +439,11 @@ export default class Package {
439439
if ( this.cliConfig?.release.enabled ) {
440440
res = await this.updateReleaseTags();
441441

442-
const statusText = Object.entries( res.data?.tags || {} )
443-
.map( ( [ tag, version ] ) => `${ tag }: ${ version || "-" }` )
444-
.join( ", " );
445-
446442
logger.log( "Update release tags:", res.ok
447443
? ( res.data.updated
448-
? ansi.ok( " Updated " ) + ", " + statusText
449-
: "Not modified, " + statusText )
450-
: ansi.error( " " + res.statusText + " " ) );
444+
? ansi.ok( " Updated " )
445+
: "Not modified" )
446+
: ansi.error( ` ${ res.statusText } ` ) );
451447

452448
if ( !res.ok ) return res;
453449
}

lib/package/npm.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,10 @@ export default class Npm {
8989
error = true;
9090
}
9191

92-
const statusText = Object.entries( res.data?.tags || {} )
93-
.map( ( [ tag, version ] ) => `${ tag }: ${ version || "-" }` )
94-
.join( ", " );
95-
9692
logger.log( "Update npm tags:", res.ok
9793
? ( res.data.updated
98-
? ansi.ok( " Updated " ) + ", " + statusText
99-
: "Not modified, " + statusText )
94+
? ansi.ok( " Updated " )
95+
: "Not modified" )
10096
: ansi.error( " " + res.statusText + " " ) );
10197

10298
if ( !res.ok && error ) {

0 commit comments

Comments
 (0)