Skip to content

Commit ce31c9c

Browse files
committed
ci: fix npm caching path
1 parent 055ace0 commit ce31c9c

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,18 @@ jobs:
2727
uses: actions/setup-node@v4
2828
with:
2929
node-version: "20"
30-
cache: "npm"
31-
cache-dependency-path: frontend/package-lock.json
30+
31+
- name: Cache npm dependencies
32+
uses: actions/cache@v4
33+
with:
34+
path: ~/.npm
35+
key: ${{ runner.os }}-node-${{ hashFiles('frontend/package-lock.json') }}
36+
restore-keys: |
37+
${{ runner.os }}-node-
3238
3339
- name: Install frontend dependencies
3440
working-directory: frontend
35-
run: npm install
41+
run: npm ci
3642

3743
- name: Lint (Python and frontend)
3844
run: make lint

0 commit comments

Comments
 (0)