Skip to content

Commit

Permalink
fix: fix storybook:build cache output path (twentyhq#5336)
Browse files Browse the repository at this point in the history
  • Loading branch information
thaisguigon committed May 8, 2024
1 parent 863554b commit 8c85e7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/actions/task-cache/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ runs:
.nx/cache
node_modules/.cache
packages/*/node_modules/.cache
packages/twenty-front/storybook-static
key: tasks-cache-${{ github.ref_name }}-${{ inputs.tag }}-${{ steps.tasks-key.outputs.key }}${{ inputs.suffix }}-${{ github.sha }}
restore-keys: |
tasks-cache-${{ github.ref_name }}-${{ inputs.tag }}-${{ steps.tasks-key.outputs.key }}${{ inputs.suffix }}-
4 changes: 2 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"cache": true,
"dependsOn": ["^build"],
"inputs": ["^default", "excludeTests"],
"outputs": ["{options.output-dir}"],
"outputs": ["{projectRoot}/{options.output-dir}"],
"options": {
"cwd": "{projectRoot}",
"command": "storybook build",
Expand Down Expand Up @@ -190,7 +190,7 @@
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "cross-var chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --build-script-name={args.targetPackageJsonScript} --exit-zero-on-changes={args.ci}",
"command": "cross-var chromatic --project-token=$CHROMATIC_PROJECT_TOKEN --build-script-name={args.targetPackageJsonScript} --exit-zero-on-changes {args.ci}",
"ci": false,
"targetPackageJsonScript": "storybook:build:chromatic"
},
Expand Down

0 comments on commit 8c85e7b

Please sign in to comment.