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 will ship. Nothing has been released yet.
Nothing has been released yet. This is the checklist for the first release and the ones after it — what has to be true, and the steps, in order. Items marked (first release) are one-time work that hasn't been done.
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 | packages/cli: the single-file bundle dist/galley.mjs, with web/, starters/ and the overlay beside it | npm |
@galley/adapter-kit — the conformance kit | packages/adapter-kit | npm |
| 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 CLI bundle. Their packages stay "private": true.
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-cmsand the@galleyscope belong to the project's npm organisation. -
packages/cli/package.jsoncan be installed from npm: it lists@galley/coreand@galley/serverasdependencies, which are private workspace packages. Since the bundle contains them, move them todevDependencies(or publish them). -
packages/adapter-kit/package.jsonexports TypeScript source (./src/index.ts) and depends on the private@galley/core. Publish compiled JavaScript with its types, with what it needs from the engine bundled or published. - Remove
"private": truefrompackages/cliandpackages/adapter-kitonly. - 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. - Code-signing certificates exist for macOS and Windows, and the secrets
named in the header of
.github/workflows/desktop.ymlare set — or the release notes say the installers are unsigned.
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). - Choose the version — while 0.x, a minor bump for any change to
galley.config.json, the HTTP API, the adapter API (ADAPTER_API_VERSION) or a CLI option; a patch otherwise. - 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/,apps/andexamples/(the desktop app'stauri.conf.jsonreadsapps/desktop/package.json);versioninapps/desktop/src-tauri/Cargo.toml;- the starter keeps its own version (
starters/astro-starter), changed only when the starter changes.
- 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. - Build the CLI bundle and try it from a clean folder:shThen delete
pnpm --filter @galley/web build pnpm --filter galley-cms build node packages/cli/dist/galley.mjs version node packages/cli/dist/galley.mjs doctor <a copy of the starter>packages/cli/dist:bin/galley.jsprefers the bundle when it exists, which would hide source changes in development. - Tag and push
vX.Y.Z. The desktop workflow builds the installers for macOS (Apple silicon and Intel), Windows and Linux and uploads them. - Publish to npm with provenance, from CI rather than a laptop:
npm publish --provenance --access publicinpackages/cli(after the bundle is built) andpackages/adapter-kit, from a workflow withpermissions: id-token: write. No release workflow exists yet; write one, or publish these two by hand from a clean checkout of the tag. - 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, updatesrc/data/site.json:status,statusNote, andinstallCommandif it changes; 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). - The GitHub release: the changelog entry as its notes, the installers attached, and plainly whether they are signed.
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).