An open source design system that's fully customizable and agent ready
TypeScript
ci: optimize PR pipeline — parallel builds + dedup + shallow clones (#1379)
Cindy Zhang5cf9420641c9
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 75e75a57fc..3ebe4565c8 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -32,8 +32,9 @@ jobs:steps:- name: Checkoutuses: actions/checkout@v6- with:- fetch-depth: 0++ - name: Fetch base branch+ run: git fetch origin ${{ github.base_ref }} --depth=1- name: Check for component changesid: check@@ -59,17 +60,6 @@ jobs:- run: yarn test- - run: yarn build-- - name: Verify package exports- run: node scripts/verify-exports.mjs-- - name: Typecheck component docs- run: yarn workspace @xds/core typecheck:docs-- - name: Typecheck template docs- run: yarn workspace @xds/cli typecheck:template-docs-# Build storybook + analyze components (parallel with test)# Uploads storybook preview and analysis artifacts for downstream jobsbuild:@@ -82,8 +72,10 @@ jobs:steps:- name: Checkoutuses: actions/checkout@v6- with:- fetch-depth: 0++ - name: Fetch base branch for PR analysis+ if: github.event_name == 'pull_request'+ run: git fetch origin ${{ github.base_ref }} --depth=1- name: Setup Node.jsuses: actions/setup-node@v6@@ -100,6 +92,12 @@ jobs:- name: Verify package exportsrun: node scripts/verify-exports.mjs+ - name: Typecheck component docs+ run: yarn workspace @xds/core typecheck:docs++ - name: Typecheck template docs+ run: yarn workspace @xds/cli typecheck:template-docs+- name: Build Storybookrun: yarn workspace @xds/storybook build