Publish & deploy a version
This guide is for repository maintainers and server operators. Publishing a Git tag or GitHub release does not automatically deploy the application.
Prepare the version in Git
The root release.json file is the shared source of truth for the platform and documentation. Update it with the release helper, then describe the changes in CHANGELOG.md.
# Examples: choose the appropriate version and channel.
node scripts/release.cjs set 2.2.0-dev.1 dev
# node scripts/release.cjs set 2.2.0 stable
# node scripts/release.cjs set 2.2.1 lts
node --test scripts/release-metadata.test.cjs scripts/sync-docs-release.test.cjs
node scripts/release.cjs checkBefore using LTS, record the intended maintenance scope, support period and update policy in the release notes. Run the functional and integration tests appropriate to the changes, not only the version checks.
Commit and publish the tag
git add release.json CHANGELOG.md
git commit -m "Release 2.2.0-dev.1"
git tag -a v2.2.0-dev.1 -m "HERAIOT 2.2.0-dev.1 DEV"
git push origin main
git push origin v2.2.0-dev.1The tag must match release.json. Published tags are immutable: use a new version for later changes. Create matching notes in GitHub Releases and mark DEV releases as prereleases. The release workflow checks the manifest, channels, tag consistency and documentation synchronization.
Build the selected revision
On the deployment server, use a clean checkout of the chosen tag. Back up the database and persistent data, review migration requirements and retain the previous images before switching production.
git checkout --detach v2.2.0-dev.1
# Builds the API/frontend and docs with the current commit and date.
bash deploy/build-release.sh
Use a staging deployment for DEV. For a validated production release, switch only the services you intend to update:
docker compose -f deploy/compose.yaml up -d --no-deps api docsThe documentation build generates its version and release history from the same manifest and changelog as the platform. Do not edit generated files inside docs-site/generated/ or content/releases/history.mdx.
Verify after deployment
curl --fail https://app.heraiot.com/build-info.jsonCheck the full commit against the selected Git tag. Open the app’s version details, then check the version shown at the top of the documentation and its release history. Verify the changed functionality and service health before considering the update complete.