Skip to content

chore: update packages, adopt CPM, switch to NuGet trusted publishing#3

Merged
StuartMeeks merged 1 commit into
mainfrom
chore/cpm-and-trusted-publishing
Jun 10, 2026
Merged

chore: update packages, adopt CPM, switch to NuGet trusted publishing#3
StuartMeeks merged 1 commit into
mainfrom
chore/cpm-and-trusted-publishing

Conversation

@StuartMeeks

Copy link
Copy Markdown
Owner

Summary

Three related housekeeping changes, bundled because the version bumps feed directly into the new CPM props file.

1. Update all NuGet packages to latest stable (no prereleases)

Package Old → New
Figgle / Figgle.Fonts 0.6.5 → 0.6.6
Spectre.Console / Spectre.Console.Testing 0.55.2 → 0.56.0
Microsoft.SourceLink.GitHub 8.0.0 → 10.0.300
Microsoft.NET.Test.Sdk 17.11.1 → 18.6.0
xunit 2.9.2 → 2.9.3
xunit.runner.visualstudio 2.8.2 → 3.1.5

2. Adopt Central Package Management

  • New Directory.Packages.props (ManagePackageVersionsCentrally=true) holds all versions as <PackageVersion> entries.
  • PackageReference entries in the three projects now carry only Include (PrivateAssets="All" retained on SourceLink).

3. NuGet trusted publishing (OIDC)

  • CI publish job now mints a short-lived nuget.org API key via NuGet/login@v1 (OIDC), replacing the long-lived NUGET_API_KEY secret.
  • Added permissions: id-token: write to the publish job.

Note: Trusted Publishing policy already configured on nuget.org. Uses a NUGET_USER repo secret (profile name). The old NUGET_API_KEY secret can be removed.

Verification

  • dotnet build -c Release → 0 warnings (TreatWarningsAsErrors is on)
  • dotnet test -c Release → 40/40 passing

🤖 Generated with Claude Code

- Update all NuGet packages to latest stable (no prereleases):
  Figgle/Figgle.Fonts 0.6.5→0.6.6, Spectre.Console(.Testing) 0.55.2→0.56.0,
  Microsoft.SourceLink.GitHub 8.0.0→10.0.300, Microsoft.NET.Test.Sdk
  17.11.1→18.6.0, xunit 2.9.2→2.9.3, xunit.runner.visualstudio 2.8.2→3.1.5
- Adopt Central Package Management: versions now live in
  Directory.Packages.props; PackageReference entries carry only Include
- CI publish job uses NuGet trusted publishing (OIDC via NuGet/login@v1)
  instead of a long-lived NUGET_API_KEY secret

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@StuartMeeks StuartMeeks merged commit 6b18062 into main Jun 10, 2026
2 checks passed
@StuartMeeks StuartMeeks deleted the chore/cpm-and-trusted-publishing branch June 10, 2026 03:11
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