perf: use Nx cache for Chromatic script (#5457)

Makes sure the `twenty-front:chromatic:ci` task in the CI job
`front-chromatic-deployment` reuses the cache of the Storybook built in
the CI job `front-sb-build` instead of re-building Storybook so
Chromatic is deployed faster in the CI.
This commit is contained in:
Thaïs
2024-05-22 11:18:16 +02:00
committed by GitHub
parent bb6df43d17
commit 35c1f97511
2 changed files with 8 additions and 3 deletions

View File

@ -6,7 +6,6 @@
"scripts": {
"build": "npx vite build && sh ./scripts/inject-runtime-env.sh",
"build:sourcemaps": "VITE_BUILD_SOURCEMAP=true NODE_OPTIONS=--max-old-space-size=4096 npx nx build",
"storybook:build:chromatic": "nx storybook:build --configuration=test",
"start:prod": "NODE_ENV=production npx vite --host",
"tsup": "npx tsup"
},