This document defines the formal release, versioning, and publishing process for acbu-backend.
Each package in the repository is versioned independently and follows Semantic Versioning 2.0.0 (SemVer):
<package>@v<MAJOR>.<MINOR>.<PATCH>[-<PRERELEASE>]
| Package | Directory | Tag example |
|---|---|---|
backend |
. (root) |
backend@v1.2.0 |
frontend |
frontend/ |
frontend@v2.1.0 |
contracts |
contracts/ |
contracts@v0.8.0 |
The bare v<MAJOR>.<MINOR>.<PATCH> form is still accepted as a backend
release for backwards compatibility, but new releases must name the package.
See Multi-Package Releases for the full
tagging scheme and the release/rollback process.
- MAJOR: Incompatible API changes, breaking database migrations, or breaking protocol alterations.
- MINOR: Backward-compatible new functionality, new endpoints, or non-breaking database columns.
- PATCH: Backward-compatible bug fixes, performance improvements, and security patches.
- PRERELEASE (optional): Release candidates (e.g.,
v1.2.0-rc.1) or beta builds for pre-production testing.
The automated release workflow is defined in .github/workflows/release.yml.
It resolves the package from the tag before building, so a run never publishes
the wrong component. Every release produces verifiable, auditable artifacts:
- Package Archive, named after the released package:
acbu-backend-vX.Y.Z.tar.gz: compiled JavaScript (dist/), schema and migrations (prisma/),package.json,pnpm-lock.yaml,README.md,CHANGELOG.mdacbu-frontend-vX.Y.Z.tar.gz: the Next.js build output (.next/) pluspackage.jsonandpnpm-lock.yamlacbu-contracts-vX.Y.Z.tar.gz: the compiled Soroban WASM andCargo.toml
- Cryptographic Checksums:
SHA256SUMSattached to every GitHub Release. - OCI Container Image (backend releases only): built via Docker buildx and
published to GitHub Container Registry (GHCR):
ghcr.io/Pi-Defi-world/acbu-backend:vX.Y.Zghcr.io/Pi-Defi-world/acbu-backend:X.Yghcr.io/Pi-Defi-world/acbu-backend:latest
To cut a new release from main:
- Verify all checks in
.github/workflows/ci.ymlpass. - Verify schema drift check passes:
pnpm run prisma:drift:check
- Generate changelog entries from conventional commits:
pnpm run changelog:update
- Bump the version of the package being released (e.g.
1.1.0for the backend):Fornpm version 1.1.0 --no-git-tag-version
frontend/andcontracts/, bumpfrontend/package.jsonor thecontracts/Cargo.tomlworkspace version instead. - Review that package's changelog (
CHANGELOG.md,frontend/CHANGELOG.md, orcontracts/CHANGELOG.md) to ensure highlights and breaking changes are noted. - Commit the release prep:
git add package.json CHANGELOG.md git commit -m "chore(release): prepare backend v1.1.0" git push upstream main
Create an annotated tag that names the package:
git tag -a backend@v1.1.0 -m "backend v1.1.0"
git push upstream backend@v1.1.0Use frontend@vX.Y.Z or contracts@vX.Y.Z for those packages. To ship the
same version across packages, push one tag per package at the same commit.
- Navigate to Actions -> Release & Artifact Publish.
- Confirm the workflow builds the bundle, pushes the GHCR image, and publishes the GitHub Release with attached
.tar.gz,SHA256SUMS, and the CycloneDX and SPDX SBOM manifests. - Verify the SBOM step succeeded and that the SBOM files are present on the release.
If a release needs to be rolled back in staging or production:
- Re-deploy the previous known-good tag for the affected package:
gh workflow run deploy-staging.yml -f ref=backend@v1.0.0
- If migrations were applied that need to be reverted, follow Database Migration Rollback Runbook to execute the matching
down.sql. - Cut a patch release for the affected package (e.g.
backend@v1.1.1) containing the necessary fixes once resolved.