Skip to content

Upgrading

Use with AI

This page

Ask ClaudeAsk ChatGPT

All of CaraCMS Docs

Connect once, and it answers your questions from this help.

Connect to ClaudeConnect to ChatGPT

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

  1. 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.

  2. Bump the package, pinned to an exact version. A site should move when someone moves it, not when an install runs.

  3. Fix what the release breaks, if anything, and commit the bump and its fixes together.

  4. Refresh the skills with caracms init, and commit what it wrote separately.

  5. Check: validate the content, build the site, run its tests.

  6. Restart the dev server and look at the editor, on whatever the notes say has changed.

Terminal window
pnpm add caracms@<version> --save-exact
npx caracms init --write
npx caracms validate

The 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.

pnpm-workspace.yaml
minimumReleaseAgeExclude:
- caracms