Skip to content

Commit 24a08a6

Browse files
ref(ci): Remove node version from cache key (#7174)
Best not to hard code this
1 parent bc6f605 commit 24a08a6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
id: cache
2020
with:
2121
path: ${{ github.workspace }}/node_modules
22-
key: node14-${{ runner.os }}-${{ hashfiles('**/yarn.lock') }}
22+
key: node-${{ runner.os }}-${{ hashfiles('**/yarn.lock') }}
2323
- run: yarn install --frozen-lockfile
2424
if: steps.cache.outputs.cache-hit != 'true'
2525

@@ -28,7 +28,7 @@ jobs:
2828
path: |
2929
.cache
3030
public
31-
key: node14-${{ runner.os }}-${{ hashfiles('**/yarn.lock') }}-gatsby-build
31+
key: node-${{ runner.os }}-${{ hashfiles('**/yarn.lock') }}-gatsby-build
3232
- name: yarn build
3333
run: yarn build
3434

@@ -54,7 +54,7 @@ jobs:
5454
id: cache
5555
with:
5656
path: ${{ github.workspace }}/node_modules
57-
key: node14-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
57+
key: node-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
5858
- run: yarn install --frozen-lockfile
5959
if: steps.cache.outputs.cache-hit != 'true'
6060

@@ -91,7 +91,7 @@ jobs:
9191
id: cache
9292
with:
9393
path: ${{ github.workspace }}/node_modules
94-
key: node14-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
94+
key: node-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
9595
- run: yarn install --frozen-lockfile
9696
if: steps.cache.outputs.cache-hit != 'true'
9797
- name: Run Tests
@@ -107,7 +107,7 @@ jobs:
107107
id: cache
108108
with:
109109
path: ${{ github.workspace }}/node_modules
110-
key: node14-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
110+
key: node-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
111111
- run: yarn install --frozen-lockfile
112112
if: steps.cache.outputs.cache-hit != 'true'
113113
- name: Build

0 commit comments

Comments
 (0)