From 695937694d051317aca2e53991f3106c7cb62895 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Apr 2026 19:55:18 +0000 Subject: [PATCH 1/2] fix: append run number to preview VersionSuffix Agent-Logs-Url: https://github.com/CrestApps/CrestApps.Core/sessions/7c64f36e-0454-49aa-b947-377cb28545fd Co-authored-by: MikeAlhayek <24724371+MikeAlhayek@users.noreply.github.com> --- .github/workflows/preview_ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview_ci.yml b/.github/workflows/preview_ci.yml index 827f4ca1..e2c3a56f 100644 --- a/.github/workflows/preview_ci.yml +++ b/.github/workflows/preview_ci.yml @@ -75,7 +75,7 @@ jobs: if: steps.check-publish.outputs.should-publish == 'true' # See pr_ci.yml for the reason why we disable NuGet audit warnings. run: | - dotnet build -c Release -warnaserror /p:TreatWarningsAsErrors=true /p:RunAnalyzers=true /p:NuGetAudit=false /p:VersionSuffix=preview + dotnet build -c Release -warnaserror /p:TreatWarningsAsErrors=true /p:RunAnalyzers=true /p:NuGetAudit=false /p:VersionSuffix=preview.${{ github.run_number }} - name: Unit Tests if: steps.check-publish.outputs.should-publish == 'true' run: | @@ -83,5 +83,5 @@ jobs: - name: Deploy preview NuGet packages if: steps.check-publish.outputs.should-publish == 'true' run: | - dotnet pack -c Release --no-build /p:VersionSuffix=preview + dotnet pack -c Release --no-build /p:VersionSuffix=preview.${{ github.run_number }} dotnet nuget push './src/**/*.nupkg' -t 600 -k ${{secrets.CLOUDSMITH_API_KEY}} -n -s https://nuget.cloudsmith.io/crestapps/crestapps-core/v3/index.json --skip-duplicate From 008fc53fb7a604b52e6404847bf58c4fff99b223 Mon Sep 17 00:00:00 2001 From: Mike Alhayek Date: Thu, 30 Apr 2026 13:00:04 -0700 Subject: [PATCH 2/2] Set the BuildNumber --- .github/workflows/preview_ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview_ci.yml b/.github/workflows/preview_ci.yml index e2c3a56f..7dd001ca 100644 --- a/.github/workflows/preview_ci.yml +++ b/.github/workflows/preview_ci.yml @@ -75,7 +75,7 @@ jobs: if: steps.check-publish.outputs.should-publish == 'true' # See pr_ci.yml for the reason why we disable NuGet audit warnings. run: | - dotnet build -c Release -warnaserror /p:TreatWarningsAsErrors=true /p:RunAnalyzers=true /p:NuGetAudit=false /p:VersionSuffix=preview.${{ github.run_number }} + dotnet build -c Release -warnaserror /p:TreatWarningsAsErrors=true /p:RunAnalyzers=true /p:NuGetAudit=false /p:VersionSuffix=preview /p:BuildNumber=$BuildNumber - name: Unit Tests if: steps.check-publish.outputs.should-publish == 'true' run: | @@ -83,5 +83,5 @@ jobs: - name: Deploy preview NuGet packages if: steps.check-publish.outputs.should-publish == 'true' run: | - dotnet pack -c Release --no-build /p:VersionSuffix=preview.${{ github.run_number }} + dotnet pack -c Release --no-build /p:VersionSuffix=preview /p:BuildNumber=$BuildNumber dotnet nuget push './src/**/*.nupkg' -t 600 -k ${{secrets.CLOUDSMITH_API_KEY}} -n -s https://nuget.cloudsmith.io/crestapps/crestapps-core/v3/index.json --skip-duplicate