Skip to content

fix(ci): use absolute path in NuGet smoke test#732

Merged
cct08311github merged 1 commit intodotnet10from
fix/nuget-smoke-test-path-731
Mar 28, 2026
Merged

fix(ci): use absolute path in NuGet smoke test#732
cct08311github merged 1 commit intodotnet10from
fix/nuget-smoke-test-path-731

Conversation

@cct08311github
Copy link
Copy Markdown
Owner

Summary

  • Fix NuGet smoke test path resolution bug that has caused every publish workflow to fail since v8.6.0
  • --source local-nupkgs (source name) was resolved as a relative path after cd smoke → use $NUPKG_DIR absolute path instead
  • Move github.workspace into env var per GitHub Actions security best practices

Impact

  • Smoke test will now pass → release asset upload step will no longer be skipped
  • NuGet packages were always published successfully (push step runs before smoke test)

Fixes #731

The --source parameter in `dotnet add package` was passed the source
name "local-nupkgs" which NuGet resolves as a relative path from the
current working directory (smoke/). After `cd smoke`, this becomes
smoke/local-nupkgs which doesn't exist.

Fix: use $NUPKG_DIR (absolute path via env var) for --source on all
three `dotnet add package` calls. Also moves github.workspace into an
env var per GitHub Actions security best practices.

Fixes #731

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cct08311github cct08311github merged commit 83869d7 into dotnet10 Mar 28, 2026
9 checks passed
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.

fix(ci): NuGet publish smoke test path bug causes asset upload skip

1 participant