Releasing
This page is for maintainers cutting a Weavestream release. Weavestream uses SemVer git tags as the source of truth for versions.
When To Bump What
- PATCH (
1.0.0->1.0.1) - backwards-compatible bug fixes and internal refactors. - MINOR (
1.0.0->1.1.0) - backwards-compatible feature additions. New environment variables are allowed when they have safe defaults. - MAJOR (
1.0.0->2.0.0) - breaking changes such as removed endpoints, renamed environment variables without fallback, or migrations requiring manual operator steps.
Any release that requires an operator action must call it out in docs/overview/changelog.md under the release's ### Upgrade notes subsection.
Release Checklist
- Start clean on
main:
git checkout main
git pull origin main
pnpm install
pnpm lint && pnpm typecheck && pnpm test
-
Move the contents of
## [Unreleased]into## [X.Y.Z] - YYYY-MM-DDin docs/overview/changelog.md. Keep a fresh empty## [Unreleased]section above it. -
Commit and open a PR titled
Release vX.Y.Z. Merge once CI is green. -
Tag the merge commit:
git checkout main
git pull origin main
git tag -a vX.Y.Z -m "Weavestream vX.Y.Z"
git push origin vX.Y.Z
- Watch
.github/workflows/release.yml. It runs Docker Buildx forapi,web, andworkeracrosslinux/amd64andlinux/arm64, then pushes these tags to GHCR:
ghcr.io/weavestream/weavestream-<svc>:X.Y.Zghcr.io/weavestream/weavestream-<svc>:X.Yghcr.io/weavestream/weavestream-<svc>:Xghcr.io/weavestream/weavestream-<svc>:latest
- Verify the release:
docker pull ghcr.io/weavestream/weavestream-api:X.Y.Z
docker run --rm ghcr.io/weavestream/weavestream-api:X.Y.Z \
node -e "console.log(process.env.WEAVESTREAM_VERSION)"
- Announce. The workflow auto-generates a GitHub Release with links to the images and changelog. Post a short note in the Discussions announcements category for user-visible changes.
Manual Build
For pre-release smoke testing, go to Actions -> Release -> Run workflow and supply a version input such as rc-20260421.
This publishes ghcr.io/weavestream/weavestream-*:rc-20260421 without creating a git tag or GitHub Release. Use it to validate Dockerfiles on a PR branch before merging.
Yanking A Bad Release
If a published release is dangerous, for example a data-loss bug or auth bypass:
- Mark the GitHub Release as draft so it is hidden from the public releases page.
- Add a
### Yankednote to the changelog entry explaining the problem. - Do not delete the image tag. Anyone who already pulled it would silently lose reproducibility.
- Push a new patch release and tell users to upgrade.
- If the issue is a security vulnerability, publish a GitHub Security Advisory.
Versioning Scope
The version string flows through three places:
- Git tag (
vX.Y.Z) - source of truth. - Docker image tag and
WEAVESTREAM_VERSIONbuild arg - baked into each image by the release workflow. It surfaces in authenticated readiness output and the web login page footer. docs/overview/changelog.md- the human-readable release notes.
There is intentionally no application version in package.json; the project does not publish npm packages, and one version source is safer than several that can drift.