diff --git a/scripts/post-changeset.js b/scripts/post-changeset.js index fe9019c71..b3872c007 100644 --- a/scripts/post-changeset.js +++ b/scripts/post-changeset.js @@ -4,7 +4,7 @@ const generatedLogs = fs.readFileSync('./packages/cli/CHANGELOG.md').toString(); const [, log] = generatedLogs.split('\n## ', 2); const mainChangelog = fs.readFileSync('./docs/changelog.md').toString(); const [date] = new Date().toISOString().split('T'); -const logWithDate = log.replace('\n', ' (${date})\n'); +const logWithDate = log.replace('\n', ` (${date})\n`); const modifiedChangelog = mainChangelog.replace( '\n', '\n\n## ' + logWithDate