Skip to content

Commit

Permalink
Merge pull request #36 from ZEISS-PiWeb/doc/Readme-semantic-version
Browse files Browse the repository at this point in the history
update README.md to include semantic-version
  • Loading branch information
cz-dev-ge authored Jun 27, 2024
2 parents 3ae6b7d + acbcd20 commit bcdbeb1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

Repository for reusable GitHub actions.

## Automatic semantic version

We utilize the GitHub action [semantic-version](https://github.com/PaulHatch/semantic-version) to automatically raise package versions when creating releases. In short to the following:

+ if introducing new features, append `(MINOR)` to the commit message,
+ if introducing breaking changes, append `(MAJOR)` to the commit message,
+ otherwise do nothing.

The action will calculate the version number change like that:

+ any number of `(MAJOR)` since the last release > raise package version to new major (e.g. 5.0.0) and ignore other labels,
+ any number of `(MINOR)` but no `(MAJOR)` since last release > raise package feature version by one (e.g. 5.0.1 becomes 5.1.0),
+ no `(MAJOR)` or `(MINOR)` since last release > raise only patch version by one (e.g. 5.0.1 becomes 5.0.2)

## Action `build-and-pack.yml`

Builds, tests and packs the source code as NuGet package. It's assumed that all source files reside in a directory `src` inside the root of the repository.
Expand Down

0 comments on commit bcdbeb1

Please sign in to comment.