Skip to content

Add NuGet login step for package publishing - #301

Merged
baronfel merged 1 commit into
mainfrom
use-nuget-trusted-publishing
Jun 17, 2026
Merged

Add NuGet login step for package publishing#301
baronfel merged 1 commit into
mainfrom
use-nuget-trusted-publishing

Conversation

@baronfel

@baronfel baronfel commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

This prevents us from having to rotate NuGet publishing keys, as one is retrieved on-demand. Docs are at https://learn.microsoft.com/en-us/nuget/nuget-org/trusted-publishing#github-actions-setup.

I've added the NUGET_USER secret that points to the trusted publisher configuration. We do similar in FsAutoComplete and a few other repos already: https://github.com/ionide/FsAutoComplete/blob/main/.github/workflows/release.yml#L54-L61

This prevents us from having to rotate NuGet publishing keys, as one is retrieved on-demand.  Docs are at https://learn.microsoft.com/en-us/nuget/nuget-org/trusted-publishing#github-actions-setup.

@nojaf nojaf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @baronfel!

@baronfel
baronfel merged commit 4fff423 into main Jun 17, 2026
2 checks passed
@baronfel
baronfel deleted the use-nuget-trusted-publishing branch June 17, 2026 14:48
@nojaf nojaf mentioned this pull request Jun 17, 2026
@nojaf

nojaf commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@baronfel it did not quite work: https://github.com/ionide/FSharp.Analyzers.SDK/actions/runs/27699932382/job/81933270688

Do lack permission but maybe also some environment thing? What did you configure there?

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.

2 participants