Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GitVersion to automatically increment package and assembly version #19

Merged
merged 10 commits into from
Oct 1, 2020

Conversation

ewingjm
Copy link
Member

@ewingjm ewingjm commented Sep 30, 2020

NO_CI the resulting commit of this PR needs to be tagged with the initial version before the CI pipeline can run

GitVersion has been configured in mainline mode. This means that it will automatically increment to a full version on each commit in master.

Using default version bump regex:

major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'

Patch version incremented by default. For more info: https://gitversion.net/docs/more-info/version-increments

Pipeline has also been updated to pack the NuGet package using the version from GitVersion.

Note: we will need to stop using pre-release tags as mainline mode on GitVersion doesn't support it. I believe this is fine as, in SemVer, anything before the first major version is pre-release by definition

@ewingjm ewingjm marked this pull request as draft September 30, 2020 19:41
@ewingjm ewingjm closed this Sep 30, 2020
@ewingjm ewingjm reopened this Sep 30, 2020
@ewingjm ewingjm marked this pull request as ready for review September 30, 2020 20:00
@ewingjm ewingjm merged commit f850f9d into master Oct 1, 2020
@ewingjm ewingjm deleted the ci/gitversion branch October 1, 2020 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant