diff --git a/src/bin/release.js b/src/bin/release.js index 847637fd7..4f8ee0020 100644 --- a/src/bin/release.js +++ b/src/bin/release.js @@ -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`); }