Releasing
NSmithy releases are published by creating a GitHub release.
Version
Section titled “Version”NuGet package versions come from Directory.Build.props.
Update VersionPrefix and VersionSuffix before creating a release. Package
versions are not derived from the Git tag.
Tag Format
Section titled “Tag Format”GitHub release tags should match the package version with a v prefix.
Example:
- package version:
0.1.0-preview.15 - release tag:
v0.1.0-preview.15
GitHub Release Flow
Section titled “GitHub Release Flow”- Update the version in
Directory.Build.props. - Merge or push the version change to the branch you want to release from.
- In GitHub, create a new release.
- Create a new tag using the
v<package-version>format. - Publish the release.
Publishing the GitHub release triggers the workflow in .github/workflows/release.yml,
which builds, tests, packs, and pushes the NuGet packages.