diff --git a/scripts/release.mjs b/scripts/release.mjs index 5c5828f2f..485540459 100755 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -149,11 +149,12 @@ if (remoteTags.split('\n').some((line) => line.endsWith(`refs/tags/${tag}`))) { ok('tag is free'); step(`Extracting changelog entry for "${cfg.changelogLabel}${version}"`); -const indexHtml = readFileSync(path.join(repoRoot, 'public/index.html'), 'utf8'); +const changelogSource = path.join(repoRoot, 'site/pages/index.astro'); +const indexHtml = readFileSync(changelogSource, 'utf8'); const expectedHeader = `${cfg.changelogLabel}${version}`; const headerIdx = indexHtml.indexOf(expectedHeader); if (headerIdx === -1) { - fail(`No changelog entry found for "${cfg.changelogLabel}${version}" in public/index.html. Add one before releasing.`); + fail(`No changelog entry found for "${cfg.changelogLabel}${version}" in site/pages/index.astro. Add one before releasing.`); } const entryStart = indexHtml.lastIndexOf('
', headerIdx);