ci: add NuGet publish workflow and repository metadata#3
Merged
Conversation
Add tag-triggered GitHub Actions workflow that builds, tests, and publishes to nuget.org on v* tags. Add RepositoryUrl, RepositoryType, and PackageProjectUrl to CLI .csproj for NuGet package metadata. Closes #1 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix broken GitHub link in CLI README (7f → 7Factor) - Fix command name in CLI README (dotnet crap → dotnet-crap) - Fix CLI README usage examples to require --coverage or --run-tests - Update root README install section now that NuGet package exists - Replace <repo-url> placeholders with actual GitHub URL Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace hardcoded Version in .csproj with MinVer, which derives the package version from git tags (e.g. v0.1.0 → 0.1.0). Remove manual version extraction from publish workflow since MinVer handles it. Add fetch-depth: 0 to both CI and publish workflows so MinVer can read the full tag history. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/publish.yml) that builds, tests, and publishes to nuget.org onv*tagsRepositoryUrl,RepositoryType, andPackageProjectUrlto CLI.csprojfor complete NuGet package metadataManual steps required after merge
NUGET_API_KEYsecret to the repo (Settings → Secrets → Actions), or configure Trusted Publishing on nuget.org for this repo/workflowgit tag v0.1.0 && git push origin v0.1.0Test plan
dotnet build— 0 warnings, 0 errorsdotnet pack— produces.nupkgwith correct metadata.nuspec—projectUrl,repositoryfields presentv0.1.0, verify publish workflow runsCloses #1
🤖 Generated with Claude Code