Skip to content

Commit ecc7f0c

Browse files
authored
fix: default date for release (#419)
1 parent dfe7adf commit ecc7f0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/prepare_release.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ class ReleasePreparation {
114114
cli.stopSpinner('Updated REPLACEME items in docs');
115115

116116
// Fetch date to use in release commit & changelogs.
117+
const todayDate = new Date().toISOString().split('T')[0];
117118
this.date = await cli.prompt('Enter release date in YYYY-MM-DD format:',
118-
{ questionType: 'input' });
119+
{ questionType: 'input', defaultAnswer: todayDate });
119120

120121
cli.startSpinner('Updating CHANGELOG.md');
121122
await this.updateMainChangelog();

0 commit comments

Comments
 (0)