We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d3a046 commit 12af95eCopy full SHA for 12af95e
1 file changed
.github/workflows/release.yaml
@@ -35,8 +35,18 @@ jobs:
35
run: npm clean-install
36
- name: Test
37
run: dotnet test -c Release
38
+
39
+ # Get a short-lived NuGet API key
40
+ # https://www.nuget.org/account/trustedpublishing
41
+ # https://learn.microsoft.com/en-gb/nuget/nuget-org/trusted-publishing
42
+ - name: NuGet login (OIDC → temp API key)
43
+ uses: NuGet/login@v1
44
+ id: nuget
45
+ with:
46
+ user: Catglobe
47
48
- name: Release
49
run: npx semantic-release
50
env:
51
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
52
+ NUGET_TOKEN: ${{steps.nuget.outputs.NUGET_API_KEY}}
0 commit comments