Skip to content

Commit

Permalink
store markdown changelog in .eslint-release-info.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Sep 7, 2024
1 parent f74751d commit 7d66a85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/release-ops.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,12 @@ function writeChangelog(releaseInfo) {
const now = new Date(),
today = dateformat(now, "mmmm d, yyyy");

releaseInfo.markdownChangelog = `v${releaseInfo.version} - ${today}\n\n${releaseInfo.rawChangelog}\n\n`;

// output header and changelog
fs.writeFileSync(
"CHANGELOG.tmp",
`v${releaseInfo.version} - ${today}\n\n${releaseInfo.rawChangelog}\n\n`
releaseInfo.markdownChangelog
);

// ensure there's a CHANGELOG.md file
Expand Down

0 comments on commit 7d66a85

Please sign in to comment.