Repository navigation
chore(ci): publish to NuGet.org with Trusted Publishing - #26
Merged
Merged
Conversation
Replace the expired NUGET_API_KEY secret with NuGet/login, which exchanges the job's GitHub OIDC token for a short-lived API key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <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
The v1.6.0 release run failed at Publish to NuGet.org with
NUGET_API_KEY not configured; the long-lived key is gone. This switches to Trusted Publishing, the same setup as ALCops/Analyzers:build-and-release.yml:id-token: writein the workflow permissions, aNuGet/login@v1step right before the push, and the push usessteps.nuget-login.outputs.NUGET_API_KEY.CLAUDE.md: release convention note.Setup before merging
ALCops, repositoryALCops/RoslynTestKit, workflow filebuild-and-release.yml(the Analyzers policy does not cover this repo; a policy matches one repository plus one workflow file)NUGET_USERsecret available to this repository (nuget.org profile name, not email)Release
v1.6.0 is tagged and on GitHub Packages but missing on NuGet.org. Squash-merge this with
+semver: nonein the commit body so GitVersion stays at 1.6.0 and the run publishes it.🤖 Generated with Claude Code