Skip to content

ci: Install NuGet 7.9.0 before pushing to nuget.org (backport #3217) - #3219

Merged
agneszitte merged 1 commit into
release/stable/7.3from
mergify/bp/release/stable/7.3/pr-3217
Oct 9, 2026
Merged

agneszitte merged 1 commit into
release/stable/7.3from
mergify/bp/release/stable/7.3/pr-3217

Conversation

@mergify

@mergify mergify Bot commented Oct 9, 2026

Copy link
Copy Markdown

GitHub Issue: N/A (CI fix; same fix as unoplatform/uno#25129 and unoplatform/Uno.Themes#1755)

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

Since 2026-10-08 (~11:00 UTC), NuGetCommand@2 pushes to nuget.org through the nuget.org uno packages service connection fail with:

External service connections that use API key authentication require NuGet 7.6 or later. The selected NuGet version is 6.4.0.123.

The requirement changed on the service connection, not in this repo, and it already broke the nuget.org publish in unoplatform/uno (fixed by unoplatform/uno#25129) and Uno.Themes (unoplatform/Uno.Themes#1755). This repo pushes through the same connection with the same task and no NuGetToolInstaller, so it runs with the agent's bundled nuget.exe 6.4.0.123 too.

It hasn't failed here yet only because the nuget.org push hasn't run since the change: the last main build, 238215 (8.0-dev.74), failed earlier in Publish - Dev NuGet / NuGet Publish Dev on the Uno Dev Feed push (Too Many Requests), so Publish to nuget.org was skipped. The previous one, 8.0-dev.72 (build 237072, 2026-10-02), predates the change.

This PR installs NuGet 7.9.0 with NuGetToolInstaller@1 right before the NuGetCommand@2 push in build/ci/templates/nuget-publish-public.yml, using the same condition. The template is shared by the dev and production nuget.org publish, so both are covered. The internal feed pushes are unchanged.

Verification

The publish stages don't run for pull requests, so this takes effect on the first main build after merge. The identical change in Uno.Themes (unoplatform/Uno.Themes#1755) was verified on its post-merge build: 238288 installed NuGet 7.9.0.83 and pushed all 7 packages to nuget.org through the same service connection.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (n/a: CI-only)
  • 📚 Docs have been added/updated (n/a)
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests

🤖 Generated with Claude Code


This is an automatic backport of pull request #3217 done by [Mergify](https://mergify.com).

- The nuget.org push through an API-key service connection now fails with "External service connections that use API key authentication require NuGet 7.6 or later. The selected NuGet version is 6.4.0.123." (seen on unoplatform/uno and Uno.Themes since 2026-10-08)
- Install NuGet 7.9.0 with NuGetToolInstaller@1 ahead of the NuGetCommand@2 push, with the same branch/PR condition
- Covers both the dev and the production nuget.org publish, which share this template

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit 89846c9)
@mergify

mergify Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Author

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@agneszitte
agneszitte merged commit 1c51906 into release/stable/7.3 Oct 9, 2026
13 checks passed
@agneszitte
agneszitte deleted the mergify/bp/release/stable/7.3/pr-3217 branch October 9, 2026 19:05
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.

3 participants