Skip to content

Commit 02193e3

Browse files
committed
chore: attempt 2
1 parent e0ee1b0 commit 02193e3

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/actions/setup-deps/action.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ runs:
77
- name: Setup Node.js
88
uses: actions/setup-node@v3
99
with:
10-
node-version: 18
10+
node-version-file: .nvmrc
1111

1212
- name: Cache deps
1313
id: yarn-cache
1414
uses: actions/cache@v3
1515
with:
16-
path: ./node_modules
17-
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
16+
path: |
17+
**/node_modules
18+
.yarn/install-state.gz
19+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
20+
restore-keys: |
21+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
22+
${{ runner.os }}-yarn-
1823
1924
- name: Install deps
2025
if: steps.yarn-cache.outputs.cache-hit != 'true'

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/*

0 commit comments

Comments
 (0)