decentraland / decentraland/unity-explorer
[Enhancement]: Add patch/minor bump option to build-release-main workflow
- Dominant language
- C#
- Stars
- 23
- Forks
- 17
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 94
Description
## Is your feature request related to a problem? Please describe.
When releasing hotfixes, the release workflow always bumps the minor version (e.g. `0.175.0` → `0.176.0`). There is no way to release a patch version (`0.175.0` → `0.175.1`).
## Proposed Solution
Add a `bump_type` input to the `build-release-main.yml` `workflow_dispatch` trigger with choices `minor` (default, preserving current behaviour) and `patch` (for hotfixes).
The `.github/actions/version` action should also accept a `bump_type` input and apply the correct version arithmetic:
- `minor`: `v{MAJOR}.{MINOR+1}.0` (current behaviour)
- `patch`: `v{MAJOR}.{MINOR}.{BUILD+1}` (new hotfix behaviour)
This is a non-breaking change — all existing push-to-main triggers continue to use minor bumping by default.
## Related
Requested via Slack by Esteban Ordano.
Contributor guide
Assessment
This issue has not been assessed yet.