Skip to content

Commit

Permalink
feat: refactor utils confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Jan 29, 2025
1 parent 5b21c2b commit 3fa716f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/package/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ You need to merge with the "${ latestPreRelease.toVersionString() }" first.`,
console.log( `\n${ ansi.hl( "# Changelog:" ) }\n\n${ log }` );

// confirm release
if ( !this.#yes && ( await confirm( "Continue release process?", [ "[yes]", "no" ] ) ) !== "yes" ) return result( [ 500, "Terminated" ] );
if ( !this.#yes && ( await confirm( "Continue release process?", [ "yes", "[no]" ] ) ) !== "yes" ) return result( [ 500, "Terminated" ] );

this.#changelog = log;

Expand Down

0 comments on commit 3fa716f

Please sign in to comment.