Quick reference for creating a new LightNVR release.
- All changes committed and pushed to main branch
- All tests passing
- Submodules match the pinned commits (
git submodule update --init --recursive) - Clean git working directory (
git statusshows no changes) - On the main branch
# One command does everything!
./scripts/release.sh 0.13.0This will:
- ✅ Bump version in all files
- ✅ Commit changes
- ✅ Create git tag
- ✅ Push to GitHub
- ✅ Trigger CI/CD builds
If you need more control:
# 1. Synchronize pinned submodules before changing or staging files
git submodule update --init --recursive
# 2. Bump version
./scripts/bump-version.sh 0.13.0
# 3. Review changes, including submodule commit summaries
git diff --submodule=log
# 4. Stage only the tracked version files and review before committing
git add -- CMakeLists.txt web/package.json
git diff --cached --submodule=log
# Stop if the staged diff includes unexpected files or submodule changes.
git commit -m "Bump version to 0.13.0"
# 5. Tag
git tag -a v0.13.0 -m "Release v0.13.0"
# 6. Push
git push && git push --tagsCommit intentional dependency updates separately before synchronizing submodules.
Avoid git add -A for a version bump: it can stage a stale submodule checkout and
revert a dependency update. Generated version files are ignored by git.
- Verify GitHub Actions build succeeds: https://github.com/opensensor/lightNVR/actions
- Check Docker images published: https://github.com/opensensor/lightNVR/pkgs/container/lightnvr
- Test Docker image:
docker pull ghcr.io/opensensor/lightnvr:0.13.0 - Update release notes on GitHub (optional)
git status # See what's uncommitted
git diff --submodule=log
git diff --cached --submodule=logSynchronize stale submodule checkouts before staging anything, and stage and commit intentional changes explicitly.
# Delete local and remote tag
git tag -d v0.13.0
git push origin :refs/tags/v0.13.0./scripts/release.sh 0.13.0 --no-pushFollow Semantic Versioning:
- MAJOR.MINOR.PATCH (e.g., 0.13.0)
- MAJOR: Breaking changes
- MINOR: New features (backwards compatible)
- PATCH: Bug fixes
The release scripts update:
CMakeLists.txt- Project versionweb/package.json- Web interface versioninclude/core/version.h- C header (generated)web/js/version.js- JavaScript version (generated)
When you push a tag:
- GitHub Actions triggers multi-arch Docker builds
- Web assets built during Docker build (Node.js + Vite)
- Docker images published to GitHub Container Registry
- Tags created:
latest,0.13.0,0.13,0
⚠️ Web assets (web/dist/) are NOT checked into git⚠️ They are built automatically during CI/CD⚠️ For local development, runnpm run buildin theweb/directory
See detailed documentation: docs/RELEASE_PROCESS.md