Skip to content

Commit bd1c8b6

Browse files
committed
build: cache turbo output on github
1 parent b05cc23 commit bd1c8b6

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,22 @@ jobs:
3232
# pulls all commits (needed for lerna / semantic release to correctly version)
3333
fetch-depth: '0'
3434

35+
- name: Cache turbo build setup
36+
uses: actions/cache@v3
37+
with:
38+
path: .turbo
39+
key: ${{ runner.os }}-turbo-${{ github.sha }}
40+
restore-keys: |
41+
${{ runner.os }}-turbo-
42+
3543
- name: Use Node.js 20
3644
uses: actions/setup-node@v4
3745
with:
3846
node-version: 20
3947
cache: 'npm'
4048

4149
- run: npm -v
42-
- run: npm ci
50+
- run: npm install
4351

4452
- name: Authenticate with Registry
4553
run: |

.github/workflows/tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131
cache: 'npm'
32-
- run: npm ci
32+
- run: npm install
3333
- run: npm run lint
3434
- run: sudo npx playwright install-deps
3535
- run: npm run test
@@ -43,10 +43,17 @@ jobs:
4343

4444
steps:
4545
- uses: actions/checkout@v4
46+
- name: Cache turbo build setup
47+
uses: actions/cache@v3
48+
with:
49+
path: .turbo
50+
key: ${{ runner.os }}-turbo-${{ github.sha }}
51+
restore-keys: |
52+
${{ runner.os }}-turbo-
4653
- name: Use Node.js ${{ matrix.node-version }}
4754
uses: actions/setup-node@v4
4855
with:
4956
node-version: ${{ matrix.node-version }}
5057
cache: 'npm'
51-
- run: npm ci
58+
- run: npm install
5259
- run: npm run build:prod

0 commit comments

Comments
 (0)