From 6747a12ce20409be458bfa1439373ac353c9c62c Mon Sep 17 00:00:00 2001 From: StyleShit <32631382+StyleShit@users.noreply.github.com> Date: Wed, 10 Jun 2026 12:39:05 +0300 Subject: [PATCH 1/3] ci(pr): remove storybook build [AR-62763] --- .github/workflows/deploy-storybook.yml | 8 ------- .github/workflows/pr.yml | 29 ----------------------- packages/design-system/.storybook/main.ts | 2 ++ packages/design-system/turbo.json | 4 ---- 4 files changed, 2 insertions(+), 41 deletions(-) diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml index f07516b8c..4be5c2809 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/deploy-storybook.yml @@ -31,14 +31,6 @@ jobs: - name: Install Dependencies uses: ./.github/actions/install - - name: Cache turbo - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 - with: - path: .turbo - key: ${{ runner.os }}-turbo-build-storybook-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-turbo-build-storybook- - - name: Build Storybook run: | pnpm build:storybook diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 40399aecf..49d88d8b9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -154,35 +154,6 @@ jobs: - name: Run Tests With Build run: pnpm test:requires-build --affected - build-storybook: - name: Build Storybook - runs-on: ubuntu-latest - - permissions: - contents: read - - steps: - - name: Checkout source code - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - with: - fetch-depth: 0 - filter: 'blob:none' - persist-credentials: false - - - name: Install Dependencies - uses: ./.github/actions/install - - - name: Cache turbo - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5 - with: - path: .turbo - key: ${{ runner.os }}-turbo-build-storybook-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-turbo-build-storybook- - - - name: Run Build Storybook - run: pnpm build:storybook --affected - packages-versions: name: Check Packages Versions runs-on: ubuntu-latest diff --git a/packages/design-system/.storybook/main.ts b/packages/design-system/.storybook/main.ts index 06622d3f0..1a5651db9 100644 --- a/packages/design-system/.storybook/main.ts +++ b/packages/design-system/.storybook/main.ts @@ -8,6 +8,8 @@ import { reactCompilerRolldownPlugin } from '../rolldown/react-compiler-rolldown // @ts-expect-error - See https://storybook.js.org/docs/faq#extensionless-imports-in-storybook-main-config import { createFontLinksHtml } from './create-font-links-html.ts'; +process.exit(1); + const config: StorybookConfig = { stories: ['../src/**/!(*.docs).mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], addons: [ diff --git a/packages/design-system/turbo.json b/packages/design-system/turbo.json index 224e6ccbb..0612debc9 100644 --- a/packages/design-system/turbo.json +++ b/packages/design-system/turbo.json @@ -10,10 +10,6 @@ }, "install:playwright": { "dependsOn": [] - }, - "build:storybook": { - "outputs": ["storybook-static/**"], - "inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/packages/vite-plugin/**"] } } } From 8e7ea14ceae78bfffd16a03c28f6c910fc698486 Mon Sep 17 00:00:00 2001 From: StyleShit <32631382+StyleShit@users.noreply.github.com> Date: Wed, 10 Jun 2026 12:41:15 +0300 Subject: [PATCH 2/3] wip --- packages/design-system/.storybook/main.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/design-system/.storybook/main.ts b/packages/design-system/.storybook/main.ts index 1a5651db9..06622d3f0 100644 --- a/packages/design-system/.storybook/main.ts +++ b/packages/design-system/.storybook/main.ts @@ -8,8 +8,6 @@ import { reactCompilerRolldownPlugin } from '../rolldown/react-compiler-rolldown // @ts-expect-error - See https://storybook.js.org/docs/faq#extensionless-imports-in-storybook-main-config import { createFontLinksHtml } from './create-font-links-html.ts'; -process.exit(1); - const config: StorybookConfig = { stories: ['../src/**/!(*.docs).mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], addons: [ From 84a06789687c49bc256558de66f4734ee0bb8e97 Mon Sep 17 00:00:00 2001 From: StyleShit <32631382+StyleShit@users.noreply.github.com> Date: Wed, 10 Jun 2026 12:43:21 +0300 Subject: [PATCH 3/3] wip --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fd4083687..0680fcb67 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "test:coverage": "turbo run test:coverage", "test:requires-build": "turbo run test:requires-build", "build": "turbo run build", - "build:storybook": "turbo run build:storybook", + "build:storybook": "pnpm run --filter=@drivenets/design-system build:storybook", "changelog": "changeset", "prepare": "husky", "pre-commit": "lint-staged"