Skip to content

Commit 15e160d

Browse files
authored
chore(ci): cache typecheck work across runs (#4415)
1 parent a11e5ff commit 15e160d

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/typecheck.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,19 @@ jobs:
2323
version: 10.33.2
2424

2525
- name: ⎔ Setup node
26-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
26+
uses: WarpBuilds/setup-node@bc639b444d583175926b588962199c247d23e8d3 # v6
2727
with:
2828
node-version: 24.18.0
2929
cache: "pnpm"
3030

31+
- name: Restore Turbo cache
32+
uses: WarpBuilds/cache@40f3443ae7b70e568d6e2070ea897f3df94d7553 # v1
33+
with:
34+
path: node_modules/.cache/turbo
35+
key: turbo-typecheck-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.sha }}
36+
restore-keys: |
37+
turbo-typecheck-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}-
38+
3139
- name: 📥 Download deps
3240
run: pnpm install --frozen-lockfile
3341

turbo.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"cache": false
3838
},
3939
"generate": {
40-
"dependsOn": ["^generate"]
40+
"dependsOn": ["^generate"],
41+
"cache": false
4142
},
4243
"docker:build": {
4344
"outputs": [],

0 commit comments

Comments
 (0)