From 087983070bd8f39150eb1118c90cba50e016b1fa Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Wed, 22 Jul 2026 12:39:32 -0700 Subject: [PATCH] Release script verifies impeccable.style serves the released version The 4.0.0 release stranded npx-update users on a stale bundle for a day because the site deploy is a separate step nobody was reminded of. Skill releases now check /api/version and print the redeploy command when the served version lags. Co-Authored-By: Claude Fable 5 --- scripts/release.mjs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/release.mjs b/scripts/release.mjs index d4aae3fc6..4f151aec1 100755 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -211,6 +211,26 @@ try { } console.log(`\n✓ ${cfg.label} ${version} released as ${tag}`); + +// npx impeccable update serves from impeccable.style, not from this release: +// the site must be redeployed (its deploy overlays public main first). Warn +// loudly when the served version lags so a release never silently strands +// update users on old content again (the 4.0.0 release did exactly that). +if (component === 'skill' && !dryRun) { + try { + const res = await fetch('https://impeccable.style/api/version'); + const served = (await res.json()).skills; + if (served === version) { + console.log(`✓ impeccable.style serves ${served}`); + } else { + console.log(`\n⚠ impeccable.style still serves ${served}, not ${version}.`); + console.log(' npx impeccable update users get the OLD version until the site redeploys:'); + console.log(' cd ../impeccable-site && bun run deploy'); + } + } catch { + console.log('⚠ could not reach impeccable.style/api/version to verify the served bundle'); + } +} if (cfg.postReleaseHint) { console.log(`\n→ Next step: ${cfg.postReleaseHint}`); }