From d657a04ab88b1e97f7fa2fc6807d0ed8bc8a1afb Mon Sep 17 00:00:00 2001 From: onmax Date: Sat, 21 Nov 2026 11:26:25 +0100 Subject: [PATCH 1/2] ci: publish previews without waiting for tests The publish job waited for the whole CI run. It now builds and checks the packages itself and runs next to the tests. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/pkg-pr-new.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pkg-pr-new.yml b/.github/workflows/pkg-pr-new.yml index 285752405..8b21757a7 100644 --- a/.github/workflows/pkg-pr-new.yml +++ b/.github/workflows/pkg-pr-new.yml @@ -21,7 +21,6 @@ jobs: publish: # Do not give fork pull requests a write-capable token while executing their package scripts. if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) - needs: check runs-on: ubuntu-latest permissions: contents: read @@ -36,11 +35,11 @@ jobs: node-version-file: .node-version cache: pnpm - run: pnpm install --frozen-lockfile - - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 - with: - name: packages - path: packages + # Build and check here instead of waiting for the whole CI run, so the + # preview does not wait for the tests. A broken build still publishes nothing. + - run: pnpm build + - run: pnpm check - run: pnpm exec pkg-pr-new publish './packages/*' --pnpm --packageManager=pnpm env: - # CI already built and checked these packages, including publint. + # The steps above already built and checked the packages, including publint. pnpm_config_ignore_scripts: "true" From fad8371cb17f86f661fab802dacc887830af536b Mon Sep 17 00:00:00 2001 From: "vite-hub[bot]" Date: Sat, 21 Nov 2026 12:26:26 +0100 Subject: [PATCH 2/2] ci: prepare Nuxt types before preview checks --- .github/workflows/pkg-pr-new.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pkg-pr-new.yml b/.github/workflows/pkg-pr-new.yml index 8b21757a7..3379d3a00 100644 --- a/.github/workflows/pkg-pr-new.yml +++ b/.github/workflows/pkg-pr-new.yml @@ -38,6 +38,7 @@ jobs: # Build and check here instead of waiting for the whole CI run, so the # preview does not wait for the tests. A broken build still publishes nothing. - run: pnpm build + - run: pnpm --filter comark-ui-docs run prepare - run: pnpm check - run: pnpm exec pkg-pr-new publish './packages/*' --pnpm --packageManager=pnpm env: