From a0e2413baf84aaeb86cda85e4b5597eb4c1d6a89 Mon Sep 17 00:00:00 2001 From: Henry Palacios <4270166+henrypalacios@users.noreply.github.com> Date: Fri, 18 Sep 2026 19:34:17 -0300 Subject: [PATCH] ci: build the package before the publish dry run The dry-run preview ran the publish lifecycle without installed dependencies, so it failed and listed an incomplete tarball. Install and build first so the preview matches what a release ships. --- .github/workflows/publish-protocol-core.yaml | 14 ++++++++++++++ .github/workflows/publish-sdk.yaml | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/.github/workflows/publish-protocol-core.yaml b/.github/workflows/publish-protocol-core.yaml index 5a000dc..873bedf 100644 --- a/.github/workflows/publish-protocol-core.yaml +++ b/.github/workflows/publish-protocol-core.yaml @@ -172,6 +172,20 @@ jobs: git config user.email "bot@quickswap.exchange" # --- Dry-run path (preview only) --- + - name: Install pnpm (dry run) + if: inputs.dry_run + uses: pnpm/action-setup@b307475762933b98ed359c036b0e51f26b63b74b # v5.0.0 + with: + version: 9 + + - name: Install dependencies (dry run) + if: inputs.dry_run + run: pnpm install --frozen-lockfile --ignore-scripts + + - name: Build package (dry run) + if: inputs.dry_run + run: pnpm --filter @quickswap-defi/protocol-core build + - name: Dry run preview if: inputs.dry_run env: diff --git a/.github/workflows/publish-sdk.yaml b/.github/workflows/publish-sdk.yaml index 7f4c4a8..8555206 100644 --- a/.github/workflows/publish-sdk.yaml +++ b/.github/workflows/publish-sdk.yaml @@ -169,6 +169,20 @@ jobs: git config user.email "bot@quickswap.exchange" # --- Dry-run path (preview only) --- + - name: Install pnpm (dry run) + if: inputs.dry_run + uses: pnpm/action-setup@b307475762933b98ed359c036b0e51f26b63b74b # v5.0.0 + with: + version: 9 + + - name: Install dependencies (dry run) + if: inputs.dry_run + run: pnpm install --frozen-lockfile --ignore-scripts + + - name: Build package (dry run) + if: inputs.dry_run + run: pnpm --filter @quickswap-defi/sdk build + - name: Dry run preview if: inputs.dry_run env: