Compute the next version of a C# project based on its current version, the version of Godot it is using, and a version bump method (major, minor, or patch).
The version returned by this action will be bumped according to the version bump strategy. If the supplied Godot version is a prerelease version, this version will receive a corresponding prerelease label suffix showing which Godot prerelease version it uses. Stable versions do not have a Godot prerelease label suffix, as nuget would not recognize them as a stable version if they did.
The Godot version can be inferred from the project's global.json
file by specifying global
or global.json
as the godot-version
input. If the global.json
file is not found, the action will fail.
The next computed version will be set as an output for the step as version
.
This is used by GodotPackage to help automate releases for C# nuget package projects using Godot.
See action.yml for the complete guide to all of the action's inputs.