Repository navigation
Releasing

Status: built (M8, #9). A release goes out as a GitHub release with a tarball. v0.1.0 was made this way. Publishing to npm is planned (M7, #8). This page is for the maintainer.
Move the changelog entries under a new version, bump package.json, merge to dev, merge dev into main with a merge commit, then push a vX.Y.Z tag on main. The release workflow builds the tarball and creates the GitHub release. After that, fix the release notes if needed, sync the wiki and redraw the roadmap chart.
- You have write access to the repo and
ghis logged in. - CI is green on
dev(typecheck, lint, test, build andnpm pack --dry-runon Node 22, 22.19 and 24). - Every change since the last release has an entry under
## [Unreleased]inCHANGELOG.md.
botticelli follows semver. While it is 0.x:
- A new feature raises the minor number:
0.1.0to0.2.0. - A fix raises the patch number:
0.1.0to0.1.1. - A breaking change is allowed in 0.x. It is written in the changelog, and it raises the minor number.
Branch from dev, for example chore/release-0.2.0.
CHANGELOG.md. Keep an empty ## [Unreleased] section on top. Put the entries below a new heading with the version and the date:
## [Unreleased]
## [0.2.0] - 2026-12-20
### Added
- …At the bottom, point [Unreleased] at the new tag and add a compare link for the new version:
[Unreleased]: https://github.com/vkmtx/botticelli/compare/v0.2.0...dev
[0.2.0]: https://github.com/vkmtx/botticelli/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/vkmtx/botticelli/releases/tag/v0.1.0The heading must start with exactly ## [0.2.0]. The workflow finds the notes by that text. The notes end at the next ## [ heading.
package.json. Set the version. This also updates package-lock.json and makes no commit or tag:
npm version 0.2.0 --no-git-tag-versionCheck it locally:
npm ci
npm run typecheck && npm run lint && npm test && npm run build && npm pack --dry-runCommit with chore(release): v0.2.0.
Open a pull request from the release branch to dev and merge it when CI is green.
Open a pull request from dev to main. Merge it with a merge commit, not a squash. A squash gives main commits that dev does not have, and the next release pull request would show them as conflicts. The repo allows merge commits and squash merges, and no rebase merges.
git switch main
git pull
git tag -a v0.2.0 -m "botticelli v0.2.0"
git push origin v0.2.0Tag the merge commit on main. The tag must be v plus the version in package.json. Pushing a tag that starts with v starts the release workflow.
.github/workflows/release.yml runs on the tag. It:
- Checks that the tag matches
package.json. If not, it stops. - Runs
npm ci,npm run typecheck,npm testandnpm run build. - Packs the tarball with
npm pack. - Makes a CycloneDX SBOM (
botticelli.cdx.json) and attests the build provenance of the tarball and the SBOM. - Cuts the notes from the
## [X.Y.Z]section ofCHANGELOG.md. It stops if the section is missing or empty. - Creates the GitHub release
botticelli vX.Y.Zwith the tarball and the SBOM attached.
gh run watch -R vkmtx/botticelliIf the workflow fails before it creates the release, fix the cause. Then delete the tag (git push origin :refs/tags/v0.2.0, and git tag -d v0.2.0) and tag again. A tag whose release exists is not moved: make a patch release instead.
Anyone can check where the tarball came from:
gh release download v0.2.0 -R vkmtx/botticelli -p 'botticelli-0.2.0.tgz'
gh attestation verify botticelli-0.2.0.tgz -R vkmtx/botticelliThe command checks the file against the attestation that the workflow signed for this repo. Run it once for each release.
The notes come from the changelog only. The v0.1.0 release has an ## Install block on top, so do the same for the new one. Copy that block from the previous release, change the version, and edit:
gh release view v0.2.0 -R vkmtx/botticelli --json body -q .body > notes.md
# add the Install block at the top: curl the tarball, npm install -g ./botticelli-0.2.0.tgz, claude mcp add …
gh release edit v0.2.0 -R vkmtx/botticelli --notes-file notes.mdKeep the install lines the same as Getting started. Download the tarball first, then install the local file.
docs/ is the source of truth. Never edit the wiki by hand.
git clone https://github.com/vkmtx/botticelli.wiki.git ../botticelli.wiki # once
npm run wiki:check
npm run wiki:sync -- ../botticelli.wiki
cd ../botticelli.wiki && git add -A && git commit -m "sync docs" && git pushnpm run wiki:check validates every internal link and anchor and writes nothing. Run it first, on the commit you tagged.
If a milestone changed status, edit scripts/roadmap/milestones.json (done, next or planned) and render the chart. It needs ImageMagick 7 and the Cinzel typeface (SIL Open Font License, from Google Fonts):
python3 scripts/roadmap/render.py --font /path/to/Cinzel.ttfThis writes docs/assets/plates/roadmap.jpg. Update the status line and the table in Roadmap and the image description in the README. Commit all of it on a docs/ branch.
Publishing to npm is not done. It is part of M7 (#8). The maintainer confirms it before it happens. Until then, every release page tells people to install from the tarball.
The workflow says Tag … does not match package.json. The tag and version differ. Fix package.json on dev and main, delete the tag and tag again.
The workflow says No CHANGELOG.md section for X.Y.Z. The heading is missing, misspelled or empty. It must read ## [X.Y.Z] - date and hold at least one line.
Do I tag dev? No. Tag main, after the merge.
Can I release from a branch other than main? No. A release is a tag on main.
This wiki mirrors docs/ in the repository. Edit the docs there, not here. · MIT · Not affiliated with Pinterest or Are.na.
Use
Understand
Contribute
Project