Skip to content

Commit

Permalink
Speed up Chromatic builds
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Nov 27, 2024
1 parent b864e42 commit d7e1ed6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: npm run build

- name: Build Storybook
run: npm run docs:build
run: npm run chromatic-build

- name: Publish to Chromatic
uses: chromaui/action@latest
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"dev": "npm run docs:start",
"docs": "npm run docs:start",
"docs:start": "storybook dev -p 6006",
"docs:build": "storybook build -c .storybook -o public --stats-json && cp -R ./packages/icons/web ./public/icons",
"docs:build": "storybook build -c .storybook -o public && cp -R ./packages/icons/web ./public/icons",
"chromatic-build": "storybook build -c .storybook -o public --test",
"vercel-build": "npm run copy-docs && npm run build && npm run docs:build",
"check:security": "audit-ci --critical",
"copy-docs": "./scripts/copy-docs.sh",
Expand Down

0 comments on commit d7e1ed6

Please sign in to comment.