From 6b1404250c353945722cad4625d0ae9470cb8e83 Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Tue, 12 Dec 2023 16:21:57 +0800 Subject: [PATCH] Use dev ci mode for storybook Signed-off-by: Aaron Chong --- .github/workflows/react-components.yml | 4 ++-- packages/react-components/package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/react-components.yml b/.github/workflows/react-components.yml index 113de202c..77cae974a 100644 --- a/.github/workflows/react-components.yml +++ b/.github/workflows/react-components.yml @@ -28,8 +28,8 @@ jobs: uses: ./.github/actions/bootstrap with: package: react-components - - name: build storybook - run: pnpm run build:storybook + - name: run storybook in dev ci mode + run: pnpm run start:ci - name: lint run: pnpm run lint - name: test diff --git a/packages/react-components/package.json b/packages/react-components/package.json index 4cd78fd1d..c7b97669c 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -11,6 +11,7 @@ "lint": "eslint --max-warnings 0 --ext ts,tsx, lib", "prepack": "pnpm run clean && pnpm run lint && pnpm run --filter {.}... build && pnpm run test", "start": "pnpm run --filter {.}^... build && sb dev -p 6006 -s test-data", + "start:ci": "pnpm run --filter {.}^... build && sb dev -p 6006 -s test-data --ci", "test": "karma start karma.conf.js", "test:coverage": "karma start karma.conf.js --coverage" },