Documentation › Project
Release process and versioning
What a Galley release produces, how versions are numbered, and the checklist for cutting one — including the one-time work the first release still needs.
This page is
RELEASING.mdfrom the repository, for maintainers and anyone curious about how Galley ships.
0.1.0, the first release, went to npm on 2026-11-23 as galley-cms and
create-galley. This is the checklist for each release — what has to be true,
and the steps, in order. Items marked (first release) were one-time work
for 0.1.0; this file doesn't record which of them were finished.
Link to this section: What a release is
One version number for the whole project, MAJOR.MINOR.PATCH, tagged
vMAJOR.MINOR.PATCH on main. It produces:
| Artifact | From | Where it goes |
|---|---|---|
galley-cms — the galley command, and what npx galley-cms runs | packages/cli: the single-file bundle dist/galley.mjs, with web/, starters/ and the overlay beside it | npm, by .github/workflows/release.yml |
create-galley — what npm create galley@latest runs | packages/create-galley: a few lines that hand over to galley new from galley-cms | npm, by the same workflow |
| Desktop installers | apps/desktop, built by .github/workflows/desktop.yml on the tag | the GitHub release |
| The container image | Dockerfile | a registry (not chosen yet) |
| The website and documentation | apps/site | the site's host |
The engine, server, web UI and overlay are not published on their own: they
are inside the galley-cms bundle. The @galley/* workspace packages
(including @galley/adapter-kit) are internal and stay "private": true.
The npm name galley belongs to someone else; never publish under it.
Link to this section: What the version numbers mean before 1.0
While the version starts with 0., anything may change between minor
versions:
- minor (
0.1.0→0.2.0): any change togalley.config.json, the HTTP API, the adapter API (ADAPTER_API_VERSION), a command-line option or a starter's name; - patch (
0.1.0→0.1.1): fixes, and additions that leave what is already there working as it did (a new command, a new optional setting); - release candidate (
0.2.0-rc.1): published under npm'snexttag, sonpm create galley@latestandnpx galley-cmskeep giving people the last release;npm create galley@nexttries the new one.
1.0.0 is the promise that the config file, the API and the options stay
compatible within a major version.
Link to this section: How the starters travel
Inside galley-cms (dist/starters/), copied from git's own list of the
starters' files, so npm create galley works offline once npm has the
package. Measured for 0.1.0: the tarball is 13.0 MB (22.9 MB unpacked),
of which the starters are 13.2 MB unpacked — mostly the Caddow photographs,
already WebP at under 190 kB each. verify-pack.mjs fails the release above
15 MB. When the starters grow past that, the plan is to fetch each one from
the tagged GitHub release instead (a starters-<id>.tgz asset per starter,
its SHA-256 recorded in the bundle and checked after download, and a plain
sentence when the computer is offline) — not built yet, because today it
would only add a download.
Link to this section: Before the first release (first release)
- The repository is public at the address in
apps/site/src/data/site.json(repository), with private vulnerability reporting turned on, and thesecurityContactandconductContactplaceholders in that file replaced with real addresses (and mentioned inSECURITY.mdandCODE_OF_CONDUCT.md). - The npm names
galley-cmsandcreate-galleyare still free (they were on 2026-11-23), and belong to the project's npm account or organisation after the first publish. - The npm token. On npmjs.com, signed in as the account that will own
the packages: Access Tokens › Generate New Token › Granular Access
Token, with Read and write permission. Before the first publish the
packages don't exist, so choose All packages; after it, replace the
token with one limited to
galley-cmsandcreate-galley. If the account requires two-factor authentication for publishing, tick Bypass two-factor authentication — the workflow can't type a code. Write tokens expire (90 days at most), so note the date. In the repository: Settings › Secrets and variables › Actions › New repository secret, namedNPM_TOKEN. (Later, npm's trusted publishing can replace the token altogether: it trustsrelease.ymlitself.) - Run the release workflow once by hand with Dry run on (Actions › Release › Run workflow) and download the tarballs it attaches.
- The JSON Schema is served where
galley initpoints$schema:https://galley.fictiontribe.com/schema/galley.config.json(fromconfigJsonSchema()inpackages/core/src/content/config/schema.ts). - The
Dockerfilehas been built and run, and the image has a name. - macOS: the signing and notarisation secrets named in the header of
.github/workflows/desktop.ymlare set, and a build signed with them has been checked in CI. - Windows: the Azure Artifact Signing secrets named in the same header are set and a build signed with them has been checked in CI — until then the release notes say the Windows installers are unsigned (the draft the workflow writes already does).
Link to this section: Every release
Green on
main. CI passes: frozen install, typecheck, tests, the web build, the site build with its documentation checks. Run the opt-in live assistant check with a real key (pnpm --filter @galley/core exec tsx test/ai/live-smoke.mts). Run the theme parity check too, in the newest Chromium you can get: CI skips it, because it needs a browser, and a new browser version can change what the page's colour recipes compute to (Chrome 159 did, and every derived colour in the app turned pink). It paints each theme's derived colours and compares the pixels with what the engine derives:THEME_PARITY_PLAYWRIGHT=/path/to/project pnpm --filter @galley/web exec vitest run test/themes/parity.browser.test.ts/path/to/projectis any folder whosenode_moduleshasplaywright-corewith its Chromium installed (npx playwright-core install chromium); a fresh install brings the newest Chromium Playwright ships, which is ahead of the one most people have. When it passes after the mirrored CSS changed, record the new hash inpackages/web/test/themes/parity-guard.test.ts.Choose the version (see What the version numbers mean above).
Set it everywhere — one commit, "Release X.Y.Z":
VERSIONinpackages/core/src/brand.ts(the server, the CLI'sgalley versionand the website read it from there);versionin the rootpackage.jsonand every workspacepackage.jsonunderpackages/(includingpackages/create-galley),apps/andexamples/(the desktop app'stauri.conf.jsonreadsapps/desktop/package.json);versioninapps/desktop/src-tauri/Cargo.toml;- the starters,
examples/plugin-exampleand the plugins underpackages/plugins/keep their own versions, changed only when they change; KIT_VERSIONinpackages/astro/src/client/forms.js, then copy the kit into the starters and the website again (node packages/astro/scripts/vendor.mjs <folder>for each ofstarters/*andapps/site), so every copy says which kit it is.- the repository's
docker-compose.yml,Caddyfileand.env.example, which name the image's version: write them again from the recipe by runningpackages/core/test/hosting/compose-example.test.tswith the update switch its header names, inpackages/core(without it, the same test fails while they disagree with the recipe). - the desktop app's own entry in
apps/desktop/src-tauri/Cargo.lock: theversionline undername = "galley-desktop". Other crates in that file can carry the same number; leave them. - the website's data:
versionandreleasedinapps/site/src/data/downloads.json, and "Version X.Y.Z" in the summary inapps/site/src/data/visibility.json; - the image's tag (
ghcr.io/…/galley:X.Y.Z) wherever it is written out:docs/cloud-install.mdandapps/site/src/content/docs/running/hosted.md; - in
apps/site/scripts/reference-cli.mjs, a note that calls a command "not in a release yet" becomes "New in X.Y.Z"; thenpnpm --filter @galley/site sync-docs, which writes the command-line reference again (it carries the image's default tag) and the documentation's copy of this file; - the release the picture capture runs by default: the
V=line inapps/site/scripts/capture/start.shand the comment above it, and the same number inapps/site/scripts/capture/README.md; - a line under Shipped so far in
ROADMAP.md; - "captured" in
apps/site/screens.json, when the pictures were taken again for this release; - the website's demo,
apps/site/public/demo/, last of all, when nothing else in the commit will change. It is a build of the app, and it is stale as soon as the version is:pnpm --filter @galley/web build:demo pnpm --filter @galley/web demo:publish pnpm --filter @galley/web demo:checkdemo:checkpasses when the committed demo was built from the files as they are now. Then build the site, open/demo/and walk its tour once.
To find a place this list doesn't name, search for the old number:
git grep -n -F "A.B.C" -- . ':!CHANGELOG.md' ':!pnpm-lock.yaml' ':!apps/site/public/demo'What may remain, and should: other crates in
Cargo.lock; the old release's own line inROADMAP.md; lines that say which release something arrived in ("New in A.B.C" in the command-line reference, "Released in A.B.C" inapps/site/CLAIMS.md); and the "captured" lines inapps/site/screens.jsonandapps/site/src/data/howto.json, which name the release the pictures were taken from until they are taken again.The release workflow refuses to publish when the tag, the two packages and
brand.tsdisagree.Changelog — in
CHANGELOG.md, rename Unreleased toX.Y.Z — YYYY-MM-DDand check every entry against what is merged. The website's/changelog/page is built from this file.Try the packages from a clean folder (optional — the workflow does the same):
mkdir -p /tmp/galley-pack pnpm --filter galley-cms pack --pack-destination /tmp/galley-pack pnpm --filter create-galley pack --pack-destination /tmp/galley-pack node packages/cli/scripts/verify-pack.mjs /tmp/galley-pack/*.tgz cd /tmp/galley-pack npm exec --yes --package=./galley-cms-X.Y.Z.tgz --package=./create-galley-X.Y.Z.tgz -- create-galley my-site --starter caddowgalley-cms'sprepackbuilds the web UI, the bundle, the site kit and the starters intopackages/cli/dist, andpostpackdeletes it again (bin/galley.jsprefers the bundle when it exists, which would hide source changes in development). Packcreate-galleywith pnpm, not npm: pnpm turns itsworkspace:*dependency into the exact version.Tag and push
vX.Y.Z:git tag -a vX.Y.Z -m "Galley X.Y.Z" git push origin vX.Y.ZTwo workflows start:
desktop.ymlbuilds the installers, andrelease.ymlbuilds, tests, packs, verifies, makes and opens a site from the tarballs, then publishesgalley-cmsand thencreate-galleyto npm with provenance (the exact tarballs it checked, also attached to the run).Check npm:
npm view galley-cms version,npm view create-galley version, and from an empty foldernpm create galley@latestandnpx galley-cms --version. The registry acceptsgalley-cmsat once and then takes some minutes over its tarball before anyone can install it (eight to ten, on 0.4.0, 0.4.1 and 0.4.2). So the workflow publishesgalley-cmsunder a tag of its own,incoming, which nobody asks for; waits until the registry lists the version and its tarball answers; then moveslatestto it (next, for a release candidate), and only then publishescreate-galley. Without that,npx galley-cmsandnpm create galley@latestboth fail for everyone for as long as the registry takes. On 0.4.2, the first release done this way,lateststayed on 0.4.1 for the 495 seconds the registry took, and moved when the tarball answered.incomingis left pointing at the release: the release's token may add or move a tag and may not remove one (0.4.2: the removal was refused), and the next release moves it. Sonpm view galley-cms dist-tagsshowsincomingbesidelatest, both at the same version once a release is done. That is as meant.Run again from the tag (Dry run off), the workflow does only what is left, so that is the way out of each place it can stop:
- The wait runs out (20 minutes at most).
galley-cmsis on npm underincomingand nothing else has changed, which breaks nothing. Run it again once the tarball answers. - npm refuses to move the tag. It didn't on 0.4.2: moving a tag is a
write to the package, as publishing is. If it ever does, move it by
hand, signed in as an owner
(
npm dist-tag add galley-cms@X.Y.Z latest), and run the workflow again: it finds the tag in place and publishescreate-galley. - A release that was finished before (
create-galleyat that version is on npm) is left alone, tags and all. A run from an older release's tag can't bringlatestback to it.
To finish wholly by hand instead:
npm dist-tag add galley-cms@X.Y.Z latest, then publish thecreate-galleytarball the run attached.create-galleyitself is listed a few minutes after it is published (three and a half, on 0.4.2); until thennpm create galley@latestgives the release before, which still installs.- The wait runs out (20 minutes at most).
The container: build from the tag, run the health check, push with the version and
latesttags.The website: build and deploy
apps/site(.github/workflows/site.ymlcan deploy it to GitHub Pages). On the first release, setinstall.publishedtotrueinapps/site/src/data/site.json— the site then showsnpm create galley@latestandnpx galley-cmsinstead of the from-a-clone steps — and updatestatusandstatusNote; then remove the "nothing is published yet" notes from the docs (grep -rn "once published\|not on npm\|Nothing is on npm" apps/site/src) and fromstarters/*/README.md.The GitHub release:
desktop.ymlleaves a draft for the tag with the installers that were built,SHA256SUMS.txt, and notes that say plainly which are signed. Check that every platform is there, put the changelog entry above those notes, and publish it. The file names carry no version (Galley-mac-apple-silicon.dmg…), so…/releases/latest/download/<name>always points at the newest.
Link to this section: Undoing a bad release
npm never lets a version number be used twice, so a bad release is replaced, not edited.
- First, point people away from it (works at any age):
npm dist-tag add galley-cms@<last good> latest npm dist-tag add create-galley@<last good> latest npm deprecate galley-cms@<bad> "Broken: use <last good> or later" npm deprecate create-galley@<bad> "Broken: use <last good> or later"npm create galley@latestandnpx galley-cmsthen fetch the good one again; anyone who asks for the bad version by number is warned. - Then fix forward: a patch release (
X.Y.Z+1) with the fix, which moveslateston as usual. - Unpublishing (
npm unpublish galley-cms@<bad>) is only allowed within 72 hours and while nothing depends on the version — andcreate-galleydepends ongalley-cms, so unpublishcreate-galley@<bad>first. Use it only for something that must not stay public (a leaked secret, a licence problem); for anything else, deprecate. An unpublished number can never be published again. - The tag: leave it. If no package was published from it (the workflow
failed), delete it (
git push origin :refs/tags/vX.Y.Z,git tag -d vX.Y.Z), fix, and tag again.
Link to this section: After a release
- Open a new Unreleased section at the top of
CHANGELOG.md. - A security fix gets a patch release and an advisory (see SECURITY.md).