Vanguard uses semantic versioning and provides a streamlined process for updating the project version. Here's how to bump the version and create a new release:
-
Navigate to the root directory of the Vanguard project.
-
Run the version bumping script:
./bump_version.sh
-
The script will prompt you to choose a version type:
- Patch (e.g., 1.0.0 to 1.0.1)
- Minor (e.g., 1.0.0 to 1.1.0)
- Major (e.g., 1.0.0 to 2.0.0)
-
After selection, you'll be asked to confirm the new version.
-
Upon confirmation, the script will:
- Update the version number in relevant files
- Commit these changes
- Push the commit to the repository
After bumping the version:
- Go to the Vanguard repository on GitHub.
- Navigate to the "Releases" section.
- Click "Draft a new release".
- Tag the release with the new version number (e.g., v1.2.3).
- Title the release with the version number.
- In the description, detail the changes and new features.
- Publish the release.
::: tip Before creating a release, ensure all tests pass and the changelog is up-to-date. :::