We use major.minor branches (e.g., 1.0, 1.1, 2.1) for releases.
- New major version of code-oss → New major version for our package
- Example: code-oss 1.x.x → branch
1.0→ tag1.0.0, code-oss 2.x.x → branch2.0→ tag2.0.0
- Example: code-oss 1.x.x → branch
- New version of code-oss → New major.minor.0 version for our package
- Example: code-oss 1.85.0 → branch
1.1→ tag1.1.0, code-oss 1.86.0 → branch1.2→ tag1.2.0
- Example: code-oss 1.85.0 → branch
- Patch releases → Increment patch number on existing major.minor branch
- Example: Bug fixes on branch
1.1→ tags1.1.1,1.1.2, etc.
- Example: Bug fixes on branch
-
Determine version: Choose tag name based on the commit's branch
- Tag format:
major.minor.patchmatching the branch the commit belongs to - Example: Commit on
1.0branch → tag1.0.0,1.0.1, etc.
- Tag format:
-
Create tag: Choose one of these methods:
- Command line: Push tag to trigger release workflow
git tag 1.0.0 git push origin 1.0.0
- GitHub Actions: Manually run "Create release" workflow from Actions tab
- GitHub UI: Go to Releases → Create a new release
- Command line: Push tag to trigger release workflow
-
Release notes: Include code-oss version information in the release description