Skip to content

fix: add --api-key and --timeout 600 to dotnet nuget push#5

Merged
maikebing merged 2 commits intomasterfrom
copilot/fix-no-api-key-warning
Mar 15, 2026
Merged

fix: add --api-key and --timeout 600 to dotnet nuget push#5
maikebing merged 2 commits intomasterfrom
copilot/fix-no-api-key-warning

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 15, 2026

GitHub Packages push was warning about a missing API key despite GITHUB_TOKEN being available, and LVGLSharp.Native (which bundles 6 platform native libs) was consistently timing out at the default 300 s limit.

Changes

  • --api-key "$GITHUB_TOKEN" added explicitly to the GitHub Packages dotnet nuget push invocation — the credential must be passed on the CLI even when it is already registered in the source config
  • --timeout 600 added to both the GitHub Packages and NuGet.org push steps to accommodate the large LVGLSharp.Native package
dotnet nuget push nupkgs/*.nupkg \
  --source github \
  --api-key "$GITHUB_TOKEN" \
  --skip-duplicate \
  --timeout 600

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Co-authored-by: maikebing <3445167+maikebing@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix API key warning during package publish fix: add --api-key and --timeout 600 to dotnet nuget push Mar 15, 2026
Copilot AI requested a review from maikebing March 15, 2026 16:28
@maikebing maikebing marked this pull request as ready for review March 15, 2026 16:30
Copilot AI review requested due to automatic review settings March 15, 2026 16:30
@maikebing maikebing merged commit bb39c6c into master Mar 15, 2026
1 check passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the NuGet publish workflow to make package pushes more reliable for GitHub Packages and large packages (notably LVGLSharp.Native) by explicitly providing an API key and extending push timeouts.

Changes:

  • Add --timeout 600 to dotnet nuget push for both NuGet.org and GitHub Packages publishing steps.
  • Add explicit --api-key "$GITHUB_TOKEN" to the GitHub Packages dotnet nuget push invocation.

@maikebing maikebing deleted the copilot/fix-no-api-key-warning branch March 15, 2026 16:44
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