Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ jobs:
with:
dotnet-version: 10.x.x
- name: Package
run: dotnet pack --configuration Release -p:Version=${{ github.ref_name }} --output .
env:
TAG: ${{ github.ref_name }}
run: |
dotnet pack --configuration Release \
-p:Version="$TAG" \
-p:AssemblyVersion="${TAG%%.*}.0.0.0" \
-p:FileVersion="${TAG%%-*}" \
--output .
- name: Upload package artifact
uses: actions/upload-artifact@v7
with:
Expand Down
2 changes: 2 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ dotnet format && csharpier format . # auto-fix code style
dotnet pack --configuration Release -p:Version=<version> --output .
```

CI additionally passes `-p:AssemblyVersion` (pinned to the major) and `-p:FileVersion`; see `.github/workflows/publish-nuget.yml`.

## Architecture

This is a **single-class NuGet library** — one public type, no state, no configuration.
Expand Down