This document outlines the release process for Dropbox-Lite, ensuring consistent versioning, branch management, and release creation.
main (default branch)
└── version-1.x.x (major version branch)
├── version-1.0.x (minor version branch)
│ ├── version-1.0.0 (release tag)
│ ├── version-1.0.1 (patch release tag)
│ └── ...
├── version-1.1.x
└── ...
-
Run the Release Script
# Execute the release script with the desired version ./release.sh <version> # Example: ./release.sh 1.0.0
The script will automatically:
- Validate the version number format (x.y.z)
- Update and pull the main branch
- Create or checkout the version branch
- Create the release tag
- Push the branch and tag to origin
-
Automated GitHub Release
When the tag is pushed to the repository, GitHub Actions will automatically:
- Create a new GitHub Release
- Set the release title to "Release vX.Y.Z"
- Extract and include the relevant section from CHANGELOG.md
- Publish the release
Note: No manual intervention is required for the GitHub Release creation.
# Execute the delete script with the version to remove
./delete-release.sh <version>
# Example:
./delete-release.sh 1.0.0The script will:
- Validate the version number format (x.y.z)
- Ask for confirmation before deletion
- Delete local and remote tags (vx.y.z)
- Delete local and remote branches (version-x.y.z)
- Provide feedback for each deletion step
Before creating a release:
- Documentation is updated
- CHANGELOG.md is updated
- Version numbers are updated in all files
- All dependencies are up to date
- Database migrations (if any) are prepared
The following steps describe the manual release process (kept for reference):
-
Create Version Branch
# For a new version git checkout main git checkout -b version-1.x.x -
Update Version Numbers
- Update version in
frontend/package.json - Add new version section in
CHANGELOG.md
- Update version in
-
Create Release Commit
git add . git commit -m "chore: prepare release v1.x.x"
-
Create Git Tag
git tag -a v1.x.x -m "Release version v1.x.x" -
Push Changes
# Push the branch git push origin version-1.x.x # Push the tag git push origin v1.x.x
-
Github Release
-
Go to GitHub Releases
-
Click "Draft a new release"
-
Choose the tag version that was just created
-
Title: "Release v1.0.0"
-
Description: Copy the relevant section from CHANGELOG.md
-
Mark as latest release if appropriate
-
Publish release