Skip to content

Commit 723bb47

Browse files
authored
Updated to actions/cache@v4 for GitHub workflows. (#8317)
actions/cache#1510
1 parent 57ea8a6 commit 723bb47

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/codecov.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
uses: actions/checkout@v2
1111

1212
- name: cache package-lock.json
13-
uses: actions/cache@v1
13+
uses: actions/cache@v4
1414
with:
1515
path: package-temp-dir
1616
key: lock-${{ github.sha }}
@@ -27,7 +27,7 @@ jobs:
2727
2828
- name: cache node_modules
2929
id: node_modules_cache_id
30-
uses: actions/cache@v1
30+
uses: actions/cache@v4
3131
with:
3232
path: node_modules
3333
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -52,13 +52,13 @@ jobs:
5252
# submodules: true
5353

5454
- name: restore cache from package-lock.json
55-
uses: actions/cache@v1
55+
uses: actions/cache@v4
5656
with:
5757
path: package-temp-dir
5858
key: lock-${{ github.sha }}
5959

6060
- name: restore cache from node_modules
61-
uses: actions/cache@v1
61+
uses: actions/cache@v4
6262
with:
6363
path: node_modules
6464
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}

.github/workflows/test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
uses: actions/checkout@v2
1111

1212
- name: cache package-lock.json
13-
uses: actions/cache@v2
13+
uses: actions/cache@v4
1414
with:
1515
path: package-temp-dir
1616
key: lock-${{ github.sha }}
@@ -27,7 +27,7 @@ jobs:
2727
2828
- name: cache node_modules
2929
id: node_modules_cache_id
30-
uses: actions/cache@v2
30+
uses: actions/cache@v4
3131
with:
3232
path: node_modules
3333
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -43,25 +43,25 @@ jobs:
4343
uses: actions/checkout@v2
4444

4545
- name: restore cache from package-lock.json
46-
uses: actions/cache@v2
46+
uses: actions/cache@v4
4747
with:
4848
path: package-temp-dir
4949
key: lock-${{ github.sha }}
5050

5151
- name: restore cache from node_modules
52-
uses: actions/cache@v2
52+
uses: actions/cache@v4
5353
with:
5454
path: node_modules
5555
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
5656

5757
- name: cache lib
58-
uses: actions/cache@v2
58+
uses: actions/cache@v4
5959
with:
6060
path: lib
6161
key: lib-${{ github.sha }}
6262

6363
- name: cache es
64-
uses: actions/cache@v2
64+
uses: actions/cache@v4
6565
with:
6666
path: es
6767
key: es-${{ github.sha }}
@@ -77,13 +77,13 @@ jobs:
7777
uses: actions/checkout@v2
7878

7979
- name: restore cache from package-lock.json
80-
uses: actions/cache@v2
80+
uses: actions/cache@v4
8181
with:
8282
path: package-temp-dir
8383
key: lock-${{ github.sha }}
8484

8585
- name: restore cache from node_modules
86-
uses: actions/cache@v2
86+
uses: actions/cache@v4
8787
with:
8888
path: node_modules
8989
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -99,13 +99,13 @@ jobs:
9999
uses: actions/checkout@v2
100100

101101
- name: restore cache from package-lock.json
102-
uses: actions/cache@v2
102+
uses: actions/cache@v4
103103
with:
104104
path: package-temp-dir
105105
key: lock-${{ github.sha }}
106106

107107
- name: restore cache from node_modules
108-
uses: actions/cache@v2
108+
uses: actions/cache@v4
109109
with:
110110
path: node_modules
111111
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}

0 commit comments

Comments
 (0)