Nuget Trusted Publishing

Playbook for releasing a .NET NuGet library (not a CLI) to nuget.org with release-please + MinVer + OIDC Trusted Publishing, so no long-lived API key is stored. Use when setting up or debugging NuGet package publishing, GitHub Actions release workflows, the NuGet/login OIDC step, a trusted-publishing policy, release-please Release PRs, MinVer tag-driven versions, or a multi-package monorepo. Covers the hard gotchas: the "Actions can't create pull requests" toggle, first-release 1.0.0 vs Release-As, the 401 workflow-file mismatch, the NUGET_USER secret, id-token permission, and NU5104.

BlakeHastings Updated

File contents

BlakeHastings/claude-code-artifacts/tree/main/nuget-trusted-publishing commit ad68a55ec6

Frequently asked questions

npx skillmds@latest add blakehastings/nuget-trusted-publishing