We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19d526d commit 2951c49Copy full SHA for 2951c49
1 file changed
scripts/release.js
@@ -281,7 +281,7 @@ Examples:
281
this.log('info', `Dry run: ${this.options.dryRun}`);
282
283
const answer = this.askQuestion('Continue with release? (y/N): ');
284
- if (answer && !answer.toLowerCase().startsWith('y')) {
+ if (answer !== null && answer !== undefined && answer.trim() !== '' && !answer.toLowerCase().startsWith('y')) {
285
throw new Error('Release cancelled by user');
286
}
287
0 commit comments