Skip to content

Commit cbaff06

Browse files
committed
fix: do not forward args to storybook:build
1 parent 00af2b1 commit cbaff06

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/ci-front.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Front / Write .env
4040
run: npx nx reset:env twenty-front
4141
- name: Front / Build storybook
42-
run: npx nx storybook:build twenty-front --configuration=test
42+
run: npx nx storybook:build twenty-front
4343
front-sb-test:
4444
runs-on: ci-8-cores
4545
needs: front-sb-build
@@ -106,7 +106,7 @@ jobs:
106106
touch .env
107107
echo "REACT_APP_SERVER_BASE_URL: $REACT_APP_SERVER_BASE_URL" >> .env
108108
- name: Publish to Chromatic
109-
run: npx nx chromatic twenty-front --configuration=ci
109+
run: npx nx run twenty-front:chromatic:ci
110110
front-task:
111111
runs-on: ubuntu-latest
112112
env:

nx.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,13 @@
219219
"options": {
220220
"cwd": "{projectRoot}",
221221
"commands": [
222-
"nx storybook:build {projectName} --configuration=test",
222+
{
223+
"command": "nx storybook:build {projectName} --configuration=test",
224+
"forwardAllArgs": false
225+
},
223226
"cross-var chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --storybook-build-dir=storybook-static {args.ci}"
224-
]
227+
],
228+
"parallel": false
225229
},
226230
"configurations": {
227231
"ci": {

0 commit comments

Comments
 (0)