From 8c85e7bf611a2a5ce21a28582707aa29fa8c3afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tha=C3=AFs?= Date: Wed, 8 May 2024 11:51:09 +0200 Subject: [PATCH] fix: fix storybook:build cache output path (#5336) --- .github/workflows/actions/task-cache/action.yaml | 1 - nx.json | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions/task-cache/action.yaml b/.github/workflows/actions/task-cache/action.yaml index 1c57a26dd..c622c84a1 100644 --- a/.github/workflows/actions/task-cache/action.yaml +++ b/.github/workflows/actions/task-cache/action.yaml @@ -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 }}- \ No newline at end of file diff --git a/nx.json b/nx.json index 9d008cf4b..7d78eb8ab 100644 --- a/nx.json +++ b/nx.json @@ -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", @@ -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" },