From ad08a8b6cc78632f90242fe9c7c4a35390809c3f Mon Sep 17 00:00:00 2001 From: Scott Pfister Date: Thu, 24 Sep 2026 17:17:00 -0500 Subject: [PATCH] fix(ci): install packed tool with mapped NuGet source Use a CI-only NuGet config so Crap4DotNet resolves from the pack output while dependencies remain on nuget.org. Allow prerelease versions because branch builds produce an alpha package; otherwise the install can select the published stable tool. Fixes #10 --- .github/workflows/ci.yml | 2 +- nuget.ci.config | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 nuget.ci.config diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f101af1..9c7e222 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: run: dotnet pack src/Crap4DotNet.Cli -o ./nupkg - name: Install dotnet-crap - run: dotnet tool install -g Crap4DotNet --add-source ./nupkg + run: dotnet tool install -g Crap4DotNet --configfile nuget.ci.config --prerelease - name: Self-analyze with CRAP metrics continue-on-error: true diff --git a/nuget.ci.config b/nuget.ci.config new file mode 100644 index 0000000..bb789d7 --- /dev/null +++ b/nuget.ci.config @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + +