Skip to content

Commit 824c9df

Browse files
committed
chore: fixed hashFiles
1 parent 31558d1 commit 824c9df

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/checks.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/cache@v3
1717
with:
1818
path: ~/.npm # this is cache where npm installs from before going out to the network
19-
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
19+
key: ${{ runner.os }}-node-${{ hashFiles('package.json', '**/package.json') }}
2020
- name: Use Node.js ${{ matrix.node-version }}
2121
uses: actions/setup-node@v3
2222
with:
@@ -32,7 +32,7 @@ jobs:
3232
- uses: actions/cache@v3
3333
with:
3434
path: ~/.npm # this is cache where npm installs from before going out to the network
35-
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
35+
key: ${{ runner.os }}-node-${{ hashFiles('package.json', '**/package.json') }}
3636
- name: Use Node.js ${{ matrix.node-version }}
3737
uses: actions/setup-node@v3
3838
with:
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/cache@v3
4949
with:
5050
path: ~/.npm # this is cache where npm installs from before going out to the network
51-
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
51+
key: ${{ runner.os }}-node-${{ hashFiles('package.json', '**/package.json') }}
5252
- run: npm install --prefer-offline
5353
- run: make lint
5454

@@ -60,6 +60,6 @@ jobs:
6060
- uses: actions/cache@v3
6161
with:
6262
path: ~/.npm # this is cache where npm installs from before going out to the network
63-
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
63+
key: ${{ runner.os }}-node-${{ hashFiles('package.json', '**/package.json') }}
6464
- run: npm install --prefer-offline
6565
- run: make typecheck

.github/workflows/pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/cache@v3
3535
with:
3636
path: ~/.npm # this is cache where npm installs from before going out to the network
37-
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
37+
key: ${{ runner.os }}-node-${{ hashFiles('package.json', '**/package.json') }}
3838
- name: Install dependencies
3939
if: steps.cacheModules.outputs.cache-hit != 'true'
4040
run: npm install

0 commit comments

Comments
 (0)