Skip to content

Commit

Permalink
fix: default date for release (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alicia Lopez committed May 19, 2020
1 parent 58bdf05 commit 860281e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/prepare_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ class ReleasePreparation {
cli.stopSpinner('Updated REPLACEME items in docs');

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

cli.startSpinner('Updating CHANGELOG.md');
await this.updateMainChangelog();
Expand Down

0 comments on commit 860281e

Please sign in to comment.