release: Stricter checking of CHANGELOG.md

This commit is contained in:
Richard Hansen 2021-02-15 16:48:28 -05:00 committed by John McLear
parent 5c48ebb406
commit 18c8838a33

View file

@ -107,9 +107,7 @@ if (!newVersion) {
throw new Error('Unable to generate new version from input');
}
const changelogIncludesVersion = changelog.indexOf(newVersion) !== -1;
if (!changelogIncludesVersion) {
if (!changelog.startsWith(`# ${newVersion}\n`)) {
throw new Error(`No changelog record for ${newVersion}, please create changelog record`);
}