From 235096a2eb1bdfa76c310e235ceb74f6a2c40c8c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 3 Jan 2026 14:15:50 +0000 Subject: [PATCH] Configure nuget-release.yml to run on PRs without publishing Co-authored-by: adamhathcock <527620+adamhathcock@users.noreply.github.com> --- .github/workflows/nuget-release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nuget-release.yml b/.github/workflows/nuget-release.yml index fe7d404a..253a93ed 100644 --- a/.github/workflows/nuget-release.yml +++ b/.github/workflows/nuget-release.yml @@ -7,6 +7,10 @@ on: - 'release' tags: - '[0-9]+.[0-9]+.[0-9]+' + pull_request: + branches: + - 'master' + - 'release' permissions: contents: read @@ -49,9 +53,9 @@ jobs: name: ${{ matrix.os }}-nuget-package path: artifacts/*.nupkg - # Push to NuGet.org using C# build target (Windows only) + # Push to NuGet.org using C# build target (Windows only, not on PRs) - name: Push to NuGet - if: success() && matrix.os == 'windows-latest' + if: success() && matrix.os == 'windows-latest' && github.event_name != 'pull_request' run: dotnet run --project build/build.csproj -- push-to-nuget env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}