Skip to content

Commit 9182cf7

Browse files
Fix node setup in workflow
1 parent e6e1f50 commit 9182cf7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/deploy-builder-frontend.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,19 @@ jobs:
3535
project_id: ${{ env.PROJECT_ID }}
3636

3737
- name: Setup Node.js
38-
working-directory: builder-frontend
3938
uses: actions/setup-node@v4
4039
with:
4140
node-version: '18'
41+
42+
- name: Cache node modules
43+
uses: actions/cache@v3
44+
with:
45+
path: builder-frontend/node_modules
46+
key: ${{ runner.os }}-node-${{ hashFiles('builder-frontend/package-lock.json') }}
47+
restore-keys: |
48+
${{ runner.os }}-node-
4249
cache: 'npm'
50+
cache-dependency-path: 'builder-frontend/package-lock.json'
4351

4452
- name: Install dependencies
4553
working-directory: builder-frontend

0 commit comments

Comments
 (0)