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:
10
nx.json
10
nx.json
@ -218,8 +218,14 @@
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"cwd": "{projectRoot}",
|
||||
"command": "cross-var chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --build-script-name={args.targetPackageJsonScript} {args.ci}",
|
||||
"targetPackageJsonScript": "storybook:build:chromatic"
|
||||
"commands": [
|
||||
{
|
||||
"command": "nx storybook:build {projectName} --configuration=test",
|
||||
"forwardAllArgs": false
|
||||
},
|
||||
"cross-var chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --storybook-build-dir=storybook-static {args.ci}"
|
||||
],
|
||||
"parallel": false
|
||||
},
|
||||
"configurations": {
|
||||
"ci": {
|
||||
|
||||
Reference in New Issue
Block a user