Skip to content

Commit 0969114

Browse files
committed
fix: Invalidate build cache to include @lezer/highlight dependency
- Changed cache key to force fresh build with new dependency - Removed --force flag as cache will be rebuilt anyway - This ensures the node_modules has the correct dependencies
1 parent 72c0c85 commit 0969114

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/test-optimized-v2.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ jobs:
6161
**/.turbo
6262
**/node_modules/.vite
6363
**/node_modules/.cache
64-
key: ${{ runner.os }}-build-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}-${{ hashFiles('**/src/**/*.ts', '**/src/**/*.tsx') }}
64+
key: ${{ runner.os }}-build-v2-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}-${{ hashFiles('**/src/**/*.ts', '**/src/**/*.tsx') }}
6565
restore-keys: |
66-
${{ runner.os }}-build-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}
67-
${{ runner.os }}-build-
66+
${{ runner.os }}-build-v2-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}
67+
${{ runner.os }}-build-v2-
6868
6969
- name: Install dependencies
7070
run: pnpm install --frozen-lockfile
7171

7272
# Build only if not cached
7373
- name: Build packages
7474
if: steps.build-cache.outputs.cache-hit != 'true'
75-
run: pnpm build --concurrency=200% --force
75+
run: pnpm build --concurrency=200%
7676
env:
7777
TURBO_TELEMETRY_DISABLED: 1
7878
TURBO_CACHE_DIR: .turbo
@@ -128,10 +128,10 @@ jobs:
128128
**/.turbo
129129
**/node_modules/.vite
130130
**/node_modules/.cache
131-
key: ${{ runner.os }}-build-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}-${{ hashFiles('**/src/**/*.ts', '**/src/**/*.tsx') }}
131+
key: ${{ runner.os }}-build-v2-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}-${{ hashFiles('**/src/**/*.ts', '**/src/**/*.tsx') }}
132132
restore-keys: |
133-
${{ runner.os }}-build-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}
134-
${{ runner.os }}-build-
133+
${{ runner.os }}-build-v2-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}
134+
${{ runner.os }}-build-v2-
135135
136136
- name: Install dependencies
137137
run: pnpm install --frozen-lockfile
@@ -194,10 +194,10 @@ jobs:
194194
**/.turbo
195195
**/node_modules/.vite
196196
**/node_modules/.cache
197-
key: ${{ runner.os }}-build-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}-${{ hashFiles('**/src/**/*.ts', '**/src/**/*.tsx') }}
197+
key: ${{ runner.os }}-build-v2-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}-${{ hashFiles('**/src/**/*.ts', '**/src/**/*.tsx') }}
198198
restore-keys: |
199-
${{ runner.os }}-build-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}
200-
${{ runner.os }}-build-
199+
${{ runner.os }}-build-v2-${{ hashFiles('**/package.json', '**/pnpm-lock.yaml', 'turbo.json') }}
200+
${{ runner.os }}-build-v2-
201201
202202
- name: Install dependencies
203203
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)