aboutsummaryrefslogtreecommitdiff
path: root/scripts/getLatestChangelog.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/getLatestChangelog.mjs')
-rw-r--r--scripts/getLatestChangelog.mjs6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/getLatestChangelog.mjs b/scripts/getLatestChangelog.mjs
new file mode 100644
index 0000000..baafe9c
--- /dev/null
+++ b/scripts/getLatestChangelog.mjs
@@ -0,0 +1,6 @@
+import { readFile } from 'fs/promises';
+
+const changelogContent = await readFile('./CHANGELOG.md', 'utf-8');
+const [, lastChangelog] = changelogContent.split(/^## .*$/gm);
+
+console.log(lastChangelog.trim());