From 94967bae47b33ae3cb63d21abea673397ef290bb Mon Sep 17 00:00:00 2001 From: Nikita Galaiko Date: Fri, 31 Mar 2023 11:50:50 +0200 Subject: [PATCH] sotrybook script things --- .github/workflows/chromatic.yml | 1 + .gitignore | 3 +++ package.json | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index f68c4fc4f..7df5fb9e6 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -34,5 +34,6 @@ jobs: uses: chromaui/action@v1 # Chromatic GitHub Action options with: + buildScriptName: 'storybook:build' # 👇 Chromatic projectToken, refer to the manage page to obtain it. projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} diff --git a/.gitignore b/.gitignore index 4d2efb7b6..8ac550b3e 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,6 @@ vite.config.js.timestamp-* # gitbutler .git/gb-* + +# storybook +storybook-static diff --git a/package.json b/package.json index 7d5cf58fa..4745c65f1 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ "lint": "prettier --plugin-search-dir . --check . && eslint .", "format": "prettier --plugin-search-dir . --write .", "tauri": "tauri", - "storybook": "storybook dev -p 6006", - "build-storybook": "storybook build" + "storybook": "storybook", + "storybook:build": "storybook build" }, "dependencies": { "@codemirror/autocomplete": "^6.4.2",