ricardoboss / STEP

The STEP programming language
http://step-lang.dev/
MIT License
5 stars 1 forks source link

Use `GitVersion` to automatically retrieve the assembly version from git #80

Closed ricardoboss closed 1 year ago

ricardoboss commented 1 year ago

Describe the feature

When releasing new versions, it is easy to forget to increase the assembly version.

To mitigate that, I'd suggest adding GitVersion as an MSBuild task. That way, the version smoothly integrates with the current release flow:

  1. Add a git tag with the new version (SEMVER)
  2. Push the tag
  3. The GitHub workflow publish gets triggered
  4. The publish.sh script is run
  5. The StepLang.CLI project is built and GitVersion determines the assembly version
  6. A new release on GitHub is drafted

Step 5 is the crucial step here, but does not require modification.

The only modification required would be to install GitVersion and configure it.

Additionally, it would be nice to have access to the current STEP version from the program (like PHPs PHP_VERSION global constant).

Please make sure you did the following before submitting your feature request: