Skip to content

Commit 888ba19

Browse files
committed
fix ci
1 parent 7e28f32 commit 888ba19

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,20 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v4
2222

23-
- name: Restore node_modules from cache
24-
id: cache
25-
uses: actions/cache/restore@v4
26-
with:
27-
path: node_modules/
28-
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
29-
3023
- name: Setup Node.js
31-
if: steps.cache.outputs.cache-hit != 'true'
3224
uses: actions/setup-node@v4
3325
with:
3426
node-version: ${{ vars.NODE_VERSION }}
3527
cache: yarn
3628

37-
- if: steps.cache.outputs.cache-hit != 'true'
38-
run: yarn install --frozen-lockfile
39-
40-
- name: Save node_modules to cache
41-
if: steps.cache.outputs.cache-hit != 'true'
42-
uses: actions/cache/save@v4
29+
- name: Cache node_modules
30+
uses: actions/cache@v4
4331
with:
4432
path: node_modules/
4533
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
4634

35+
- run: yarn install --frozen-lockfile
36+
4737
build:
4838
name: Build
4939
needs: [deps]

0 commit comments

Comments
 (0)