chore(release): create a github release on new version
This commit is contained in:
6
scripts/getLatestChangelog.mjs
Normal file
6
scripts/getLatestChangelog.mjs
Normal file
@@ -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());
|
||||
Reference in New Issue
Block a user