Skip to content

chore: bump deps to latest stable + NuGet trusted publishing#65

Merged
StuartMeeks merged 4 commits into
mainfrom
chore/cpm-deps-trusted-publishing
Jun 10, 2026
Merged

chore: bump deps to latest stable + NuGet trusted publishing#65
StuartMeeks merged 4 commits into
mainfrom
chore/cpm-deps-trusted-publishing

Conversation

@StuartMeeks

Copy link
Copy Markdown
Owner

Covers the three requested items.

1. Centralised Package Management

Already in place (committed in bdea4e4): Directory.Packages.props with ManagePackageVersionsCentrally=true and every csproj using versionless PackageReference. No change needed.

2. Package updates (latest stable, intentional pins respected)

Bumped the four packages that had a newer stable release:

Package From To
Microsoft.Data.Sqlite 10.0.8 10.0.9
Microsoft.Extensions.DependencyInjection 10.0.8 10.0.9
Microsoft.WindowsAppSDK 2.1.3 2.2.0
Velopack 1.1.1 1.2.0

All other packages were already at their latest stable.

Deliberate hold: Spectre.Console stays at 0.55.0. A 0.56.0 exists, but Spectre.Console.Cli has not shipped a matching release and the pair must move in lockstep. Recorded as a comment in Directory.Packages.props so it isn't "fixed" by mistake.

3. NuGet Trusted Publishing

The importer's NuGet.org push now uses OIDC trusted publishing instead of the long-lived NUGET_API_KEY secret:

  • Added id-token: write to the release workflow permissions.
  • A NuGet/login@v1 step (run immediately before the push) exchanges the GitHub OIDC token for a short-lived API key.
  • dotnet nuget push consumes that temporary key.

Required before the next release (manual, on nuget.org)

  • Create a Trusted Publishing policy: repo owner StuartMeeks, repo Snipdeck, workflow file release.yml.
  • Add a NUGET_USER repo secret = your nuget.org profile username (not email).
  • The old NUGET_API_KEY secret can be removed once the first trusted-publish succeeds.

Verification

  • Linux: full restore + Core (240), Execution (61), Importer (66) tests pass.
  • Windows build host: Snipdeck.App compiles clean — 0 warnings (TreatWarningsAsErrors on), 0 errors — with WindowsAppSDK 2.2.0 + Velopack 1.2.0.

🤖 Generated with Claude Code

StuartMeeks and others added 4 commits June 10, 2026 03:20
Update centrally-managed package versions to latest stable (CPM was already
in place):
- Microsoft.Data.Sqlite 10.0.8 -> 10.0.9
- Microsoft.Extensions.DependencyInjection 10.0.8 -> 10.0.9
- Microsoft.WindowsAppSDK 2.1.3 -> 2.2.0
- Velopack 1.1.1 -> 1.2.0

Spectre.Console is deliberately held at 0.55.0: a 0.56.0 exists but
Spectre.Console.Cli has not shipped one, and the pair must move together.
All other packages were already at their latest stable.

Switch the importer's NuGet.org push to Trusted Publishing: the release job
now exchanges its GitHub OIDC token for a short-lived API key via
NuGet/login@v1 (id-token: write) instead of the long-lived NUGET_API_KEY
secret. Requires a trusted publishing policy on nuget.org plus a NUGET_USER
secret (nuget.org profile username).

Verified: full restore + Core/Execution/Importer tests pass on Linux, and the
WinUI App compiles clean (0 warnings) on the Windows build host with the
bumped WindowsAppSDK/Velopack.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Spectre.Console.Cli has no 0.56.0 yet, so it stays at 0.55.0 (its latest
stable) while Spectre.Console moves forward; realign when Cli catches up.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The App csproj referenced win-$(Platform).pubxml, but no such profile exists
in the repo — publishes are driven entirely by CLI args. The dangling
reference only produced NETSDK1198 on every publish. Removing it silences the
warning with no behavioural change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bump version.json to 1.0.4 and promote the CHANGELOG: dependency refresh
(Windows App SDK 2.2.0, Velopack 1.2.0) and the move to NuGet trusted
publishing for the snipdeck-importer tool.

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