A .NET 8 console application demonstrating automated semantic versioning with Versionize and GitHub Actions.
dotnet restore
dotnet build
dotnet run --project VersionTestAppOn every push to master, a GitHub Actions workflow:
- Builds the project
- Runs Versionize to analyze commits since the last release
- Bumps the version in
VersionTestApp/VersionTestApp.csproj, updatesCHANGELOG.md, and creates a git tag - Pushes the changes and creates a GitHub Release
Version bumps are determined by commit messages following the Conventional Commits specification:
| Prefix | Version Bump |
|---|---|
fix: |
Patch (1.0.x) |
feat: |
Minor (1.x.0) |
feat!: or BREAKING CHANGE: |
Major (x.0.0) |
Commits without a feat or fix prefix are considered insignificant and do not trigger a release.
To use this workflow in your own repository, add a Personal Access Token as a repository secret named TEST_PAT with permissions to push commits and tags.