From 3fca701aa6aeab99194823e19f2bdd7e422b45e9 Mon Sep 17 00:00:00 2001 From: Darren Kattan Date: Mon, 11 May 2026 11:50:57 -0500 Subject: [PATCH 1/2] ci(actions): publish preview nugets Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/preview-nugets.yml | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/preview-nugets.yml diff --git a/.github/workflows/preview-nugets.yml b/.github/workflows/preview-nugets.yml new file mode 100644 index 000000000..043373872 --- /dev/null +++ b/.github/workflows/preview-nugets.yml @@ -0,0 +1,48 @@ +name: Preview NuGet packages + +on: + push: + branches: + - "ci/**" + - "feat/**" + - "fix/**" + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + meta: + uses: ./.github/workflows/part-compute-version.yml + secrets: inherit + with: + prereleaseSlug: preview + + build: + uses: ./.github/workflows/part-build.yml + secrets: inherit + needs: meta + with: + COALESCE_VERSION: ${{ needs.meta.outputs.COALESCE_VERSION }} + + publish-nuget: + runs-on: ubuntu-latest + needs: [build] + permissions: + contents: read + packages: write + + steps: + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: 10.0.x + + - name: Download NuGet packages artifact + uses: actions/download-artifact@v8 + with: + name: packages + path: out/packages + + - name: Push packages to GitHub Packages + run: dotnet nuget push "out/packages/*.nupkg" --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --api-key ${{ github.token }} --skip-duplicate From 4040d0973dcf9b1ffc42ef26c60531e16ea10bf5 Mon Sep 17 00:00:00 2001 From: Darren Kattan Date: Mon, 11 May 2026 12:06:08 -0500 Subject: [PATCH 2/2] ci(actions): scope preview nuget checks Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/preview-nugets.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/preview-nugets.yml b/.github/workflows/preview-nugets.yml index 043373872..668f18587 100644 --- a/.github/workflows/preview-nugets.yml +++ b/.github/workflows/preview-nugets.yml @@ -19,16 +19,30 @@ jobs: with: prereleaseSlug: preview - build: - uses: ./.github/workflows/part-build.yml - secrets: inherit + build-nuget: + runs-on: ubuntu-latest needs: meta - with: + + env: COALESCE_VERSION: ${{ needs.meta.outputs.COALESCE_VERSION }} + steps: + - uses: actions/checkout@v6 + - uses: ./.github/actions/setup-dotnet + - uses: ./.github/actions/setup-js + - run: dotnet restore + - run: dotnet build --no-restore --configuration Release /WarnAsError + - run: dotnet pack --no-build --configuration Release -p:PackageOutputPath="$(pwd)/out/packages" + + - name: Upload NuGet packages artifact + uses: actions/upload-artifact@v7 + with: + name: packages + path: out/packages + publish-nuget: runs-on: ubuntu-latest - needs: [build] + needs: [build-nuget] permissions: contents: read packages: write