-
Notifications
You must be signed in to change notification settings - Fork 389
Use Nerdbank.GitVersioning #301
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #301 +/- ##
=======================================
Coverage 87.02% 87.02%
=======================================
Files 31 31
Lines 3107 3107
=======================================
Hits 2704 2704
Misses 403 403 |
Marked as WIP while I rebase to account for recent merges. |
9b6e288
to
948be42
Compare
a8c00da
to
5424b16
Compare
@tonerdo This is now rebased. As you can see, the builds produced by each AppVeyor build now have a unique version number, making it tremendously easier to prepare/manage releases. You will only rarely need to update version numbers in the project, and when you do, it will be limited to changes in version.json. |
version.json
Outdated
"publicReleaseRefSpec": [ | ||
"^refs/heads/master$" | ||
], | ||
"buildNumberOffset": 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 This accounts for the fact that you were already making releases with version numbers 2.5.x, and we don't want to reuse a version number already taken by a previous build. The property can be permanently removed starting with your first 2.6+ build.
/cc @AArnott in case he wants to put a copy of the instructions above somewhere for future users. 😄 |
I'm torn. The doc looks well written, but it doesn't really have anything to do with NB.GV itself. But maybe as a new AppVeyor-specific suggestions doc linked from https://github.com/AArnott/Nerdbank.GitVersioning/blob/master/doc/cloudbuild.md ? @sharwell would you be willing to send such a PR? |
@tonerdo Conflicts are resolved again |
Thank you @sharwell, will take a look in a couple |
Superseded by #425 |
Overview
This change uses Nerdbank.GitVersioning to automatically version the assemblies and packages as work progresses in the repository.
Deployment
Deploying a release to NuGet is much simpler after this change is applied. After setting up an environment (see next part), here are the steps to release a build:
Creating the environment
💡 This is a one-time setup process, after which you can use the environment any time you want to make a new coverlet release.
coverlet.*