Upgrading
An upgrade is a version bump with a few checks. Most releases need nothing from the site. The upgrade notes say which ones do.
The steps
Find out what a push sets off. On many sites a push to main is a production deploy, so do the upgrade locally and push once every check passes.
Bump the package, pinned to an exact version. A site should move when someone moves it, not when an install runs.
Fix what the release breaks, if anything, and commit the bump and its fixes together.
Refresh the skills with caracms init, and commit what it wrote separately.
Check: validate the content, build the site, run its tests.
Restart the dev server and look at the editor, on whatever the notes say has changed.
pnpm add caracms@<version> --save-exactnpx caracms init --writenpx caracms validateThe upgrade notes
Every release says what it asks of a site: what breaks, anything to run, what shows in the editor, and what’s worth adopting later. The notes ship inside the package as the caracms-upgrade skill.
Read them from the new version. After the bump they’re at node_modules/caracms/site-skills/caracms-upgrade/SKILL.md. Read every version between the one the site was on and the new one.
pnpm holds new releases back
pnpm waits a day before installing a newly published version of any package. To let caracms through, name it in pnpm-workspace.yaml. caracms init adds this for you on a pnpm site.
minimumReleaseAgeExclude: - caracmsA release can bring features worth adopting. Adopting one is separate work for when it’s scheduled, never part of the bump.
llms.txt · llms-full.txt: this site for AI tools