Skip to content

Commit 2614568

Browse files
authored
Update actions/cache to v4 in github actions (#725)
* Update actions/cache to v4 in github actions * Update remaining actions
1 parent 4b0337f commit 2614568

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/deploy-to-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
node-version: ${{ steps.nvm.outputs.NVMRC }}
4040

4141
- name: Cache node modules
42-
uses: actions/cache@v2
42+
uses: actions/cache@v4
4343
env:
4444
cache-name: cache-node-modules
4545
with:

.github/workflows/deploy-to-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
node-version: ${{ steps.nvm.outputs.NVMRC }}
4545

4646
- name: Cache node modules
47-
uses: actions/cache@v2
47+
uses: actions/cache@v4
4848
env:
4949
cache-name: cache-node-modules
5050
with:

.github/workflows/e2e.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ jobs:
4040
node-version: ${{ steps.nvm.outputs.NVMRC }}
4141

4242
- name: Cache node modules
43-
uses: actions/cache@v2
43+
uses: actions/cache@v4
4444
with:
4545
path: node_modules
4646
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
4747

4848
- name: Cache Gatsby .cache folder
49-
uses: actions/cache@v2
49+
uses: actions/cache@v4
5050
with:
5151
path: .cache
5252
key: ${{ runner.os }}-gatsby-cache-${{ hashFiles('yarn.lock') }}
5353

5454
- name: Cache Gatsby public folder
5555
id: cache-build
56-
uses: actions/cache@v2
56+
uses: actions/cache@v4
5757
with:
5858
path: public
5959
key: ${{ runner.os }}-gatsby-build-${{ hashFiles('yarn.lock') }}-${{ hashFiles('src/**') }}
@@ -95,19 +95,19 @@ jobs:
9595
node-version: ${{ steps.nvm.outputs.NVMRC }}
9696

9797
- name: Restore node modules
98-
uses: actions/cache@v2
98+
uses: actions/cache@v4
9999
with:
100100
path: node_modules
101101
key: ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
102102

103103
- name: Restore Gatsby .cache folder
104-
uses: actions/cache@v2
104+
uses: actions/cache@v4
105105
with:
106106
path: .cache
107107
key: ${{ runner.os }}-gatsby-cache-${{ hashFiles('yarn.lock') }}
108108

109109
- name: Restore Gatsby public folder
110-
uses: actions/cache@v2
110+
uses: actions/cache@v4
111111
with:
112112
path: public
113113
key: ${{ runner.os }}-gatsby-build-${{ hashFiles('yarn.lock') }}-${{ hashFiles('src/**') }}
@@ -149,7 +149,7 @@ jobs:
149149
uses: actions/checkout@v2
150150

151151
- name: Restore Gatsby public folder
152-
uses: actions/cache@v2
152+
uses: actions/cache@v4
153153
with:
154154
path: public
155155
key: ${{ runner.os }}-gatsby-build-${{ hashFiles('yarn.lock') }}-${{ hashFiles('src/**') }}

.github/workflows/lint-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
node-version: ${{ steps.nvm.outputs.NVMRC }}
2929
- name: Cache node modules
30-
uses: actions/cache@v2
30+
uses: actions/cache@v4
3131
env:
3232
cache-name: cache-node-modules
3333
with:
@@ -64,7 +64,7 @@ jobs:
6464
node-version: ${{ steps.nvm.outputs.NVMRC }}
6565

6666
- name: Cache node modules
67-
uses: actions/cache@v2
67+
uses: actions/cache@v4
6868
env:
6969
cache-name: cache-node-modules
7070
with:

0 commit comments

Comments
 (0)