Skip to content

Commit 2951c49

Browse files
committed
update release js
1 parent 19d526d commit 2951c49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ Examples:
281281
this.log('info', `Dry run: ${this.options.dryRun}`);
282282

283283
const answer = this.askQuestion('Continue with release? (y/N): ');
284-
if (answer && !answer.toLowerCase().startsWith('y')) {
284+
if (answer !== null && answer !== undefined && answer.trim() !== '' && !answer.toLowerCase().startsWith('y')) {
285285
throw new Error('Release cancelled by user');
286286
}
287287
}

0 commit comments

Comments
 (0)