Skip to content

Commit b215b75

Browse files
committed
don't rely only on lock file
1 parent abbdcc7 commit b215b75

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/checks.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id: dependency-cache
2222
with:
2323
path: "**/node_modules"
24-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
24+
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
2525
- name: Use build cache
2626
uses: actions/cache@v4
2727
with:
@@ -54,7 +54,7 @@ jobs:
5454
id: dependency-cache
5555
with:
5656
path: "**/node_modules"
57-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
57+
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
5858
- name: Use build cache
5959
uses: actions/cache@v4
6060
with:
@@ -80,7 +80,7 @@ jobs:
8080
id: dependency-cache
8181
with:
8282
path: "**/node_modules"
83-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
83+
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
8484
- name: Use build cache
8585
uses: actions/cache@v4
8686
with:
@@ -107,7 +107,7 @@ jobs:
107107
id: dependency-cache
108108
with:
109109
path: "**/node_modules"
110-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
110+
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
111111
- name: Use build cache
112112
uses: actions/cache@v4
113113
with:
@@ -154,7 +154,7 @@ jobs:
154154
id: dependency-cache
155155
with:
156156
path: "**/node_modules"
157-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
157+
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
158158
- name: Use build cache
159159
uses: actions/cache@v4
160160
with:
@@ -192,7 +192,7 @@ jobs:
192192
id: dependency-cache
193193
with:
194194
path: "**/node_modules"
195-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
195+
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
196196
- name: Use build cache
197197
uses: actions/cache@v4
198198
with:
@@ -224,7 +224,7 @@ jobs:
224224
id: dependency-cache
225225
with:
226226
path: "**/node_modules"
227-
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
227+
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/yarn.lock') }}
228228
- name: Use build cache
229229
uses: actions/cache@v4
230230
with:

0 commit comments

Comments
 (0)