From f7ab774fe487919014c968c1d78fe4ad0484fec7 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Mon, 4 May 2026 08:37:48 -0700 Subject: [PATCH] fix(release): read changelog from site/pages/index.astro after Astro migration The release script still pointed at public/index.html, which the Astro migration deleted. The changelog lives in site/pages/index.astro now. The substring extraction logic works unchanged because the source contains the same markup that the build emits. Co-Authored-By: Claude Opus 4.7 (1M context) --- scripts/release.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);