From 7d66a85889883bdfe7cdb1315985ded6b77cc7c4 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Sat, 7 Sep 2024 11:10:08 +0200 Subject: [PATCH] store markdown changelog in `.eslint-release-info.json` --- lib/release-ops.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/release-ops.js b/lib/release-ops.js index 470b29f..247cd62 100644 --- a/lib/release-ops.js +++ b/lib/release-ops.js @@ -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