Skip to content

ci: Install NuGet 7.9.0 before pushing to nuget.org - #25129

Merged
Xiaoy312 merged 1 commit into
masterfrom
dev/xygu/20261008/fix-nuget-publish
Oct 8, 2026
Merged

Xiaoy312 merged 1 commit into
masterfrom
dev/xygu/20261008/fix-nuget-publish

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

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

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

Since 2026-10-08 (~11:00 UTC) the nuget.org push fails in Publish - Dev NuGet / Nuget Publish Dev (build 238167, 7.0.0-dev.1592):

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

The previous build (7.0.0-dev.1583, build 238147) pushed fine, so the requirement changed on the nuget.org uno packages service connection, not in this repo. The packages still reach the Uno dev feed, but nothing newer than 7.0.0-dev.1583 reaches nuget.org. That also blocks the uno.templates Uno.Sdk publish (unoplatform/uno.templates#2303), whose nuget.org dependency check fails on the missing Core 7.0.0-dev.1592.

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 master 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)
  • 🖼️ Validated PR Screenshots Compare Test Run results.
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests

🤖 Generated with Claude Code

- The nuget.org push 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." (first seen on 7.0.0-dev.1592)
- 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]>
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Oct 8, 2026
@Xiaoy312
Xiaoy312 enabled auto-merge October 8, 2026 18:19
@mergify

mergify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

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.

@Xiaoy312
Xiaoy312 merged commit 21499b0 into master Oct 8, 2026
56 checks passed
@Xiaoy312
Xiaoy312 deleted the dev/xygu/20261008/fix-nuget-publish branch October 8, 2026 19:29
@agneszitte

Copy link
Copy Markdown
Member

@mergify backport servicing/6.8 release/stable/6.7

@mergify

mergify Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

backport servicing/6.8 release/stable/6.7

✅ Backports have been created

Details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants