From 4c6c24851255eaac6618592ac0bcac3b8bf6c426 Mon Sep 17 00:00:00 2001 From: Volodymyr Vreshch Date: Fri, 20 Mar 2026 02:02:53 +0100 Subject: [PATCH] fix: use root-level verify in publish workflow Per-package `vitest run` fails because the root vitest.config.ts include pattern is relative to cwd, not config location. Run full verify from root instead of per-package in the publish pipeline. --- .github/workflows/publish.yml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 043b65b..91a2e96 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -112,14 +112,10 @@ jobs: fi verify: - name: ✅ Verify ${{ matrix.package.name }}@${{ matrix.package.version }} + name: ✅ Verify All Packages needs: [detect-changes] if: needs.detect-changes.outputs.has-changes == 'true' runs-on: ubuntu-latest - strategy: - matrix: - package: ${{ fromJson(needs.detect-changes.outputs.packages) }} - fail-fast: true steps: - name: 📥 Checkout code @@ -134,18 +130,11 @@ jobs: - name: 📦 Install dependencies run: npm ci - - name: 🏗️ Build all workspace packages - run: npm run build - - - name: ✅ Run verification - working-directory: ${{ matrix.package.dir }} - run: | - echo "🔍 Verifying ${{ matrix.package.name }}@${{ matrix.package.version }}" - npm run verify + - name: ✅ Run full verification + run: npm run verify - name: ✅ Verification passed - run: | - echo "✅ ${{ matrix.package.name }}@${{ matrix.package.version }} verified successfully" >> $GITHUB_STEP_SUMMARY + run: echo "✅ All packages verified successfully" >> $GITHUB_STEP_SUMMARY publish: name: 📤 Publish ${{ matrix.package.name }}@${{ matrix.package.version }}