We've just enabled trusted publishing on the NuGet package delivery. Relevant information from the policies:
- Trusted actions scripts:
build-library.yml
build-template.yml
- Trusted environment:
Update the build-library.yml and build-template.yml to publish via trusted publishing.
As an example, the following PR is from another repo that has done the work already: https://github.com/CommunityToolkit/Aspire/pull/1452/changes
Within the GitHub setup, environment nuget-release-gate has already been created and NUGET_USER is set.
We've just enabled trusted publishing on the NuGet package delivery. Relevant information from the policies:
build-library.ymlbuild-template.ymlnuget-release-gateUpdate the build-library.yml and build-template.yml to publish via trusted publishing.
As an example, the following PR is from another repo that has done the work already: https://github.com/CommunityToolkit/Aspire/pull/1452/changes
Within the GitHub setup, environment nuget-release-gate has already been created and NUGET_USER is set.