Skip to content

Commit b3efecf

Browse files
committed
chore: update action config
1 parent 285e05f commit b3efecf

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/test.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: checkout
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@master
1111

1212
- name: cache package-lock.json
13-
uses: actions/cache@v1
13+
uses: actions/cache@v2
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@v2
3131
with:
3232
path: node_modules
3333
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -40,28 +40,28 @@ jobs:
4040
runs-on: ubuntu-latest
4141
steps:
4242
- name: checkout
43-
uses: actions/checkout@v2
43+
uses: actions/checkout@master
4444

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

5151
- name: restore cache from node_modules
52-
uses: actions/cache@v1
52+
uses: actions/cache@v2
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@v1
58+
uses: actions/cache@v2
5959
with:
6060
path: lib
6161
key: lib-${{ github.sha }}
6262

6363
- name: cache es
64-
uses: actions/cache@v1
64+
uses: actions/cache@v2
6565
with:
6666
path: es
6767
key: es-${{ github.sha }}
@@ -74,16 +74,16 @@ jobs:
7474
runs-on: ubuntu-latest
7575
steps:
7676
- name: checkout
77-
uses: actions/checkout@v2
77+
uses: actions/checkout@master
7878

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

8585
- name: restore cache from node_modules
86-
uses: actions/cache@v1
86+
uses: actions/cache@v2
8787
with:
8888
path: node_modules
8989
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}
@@ -96,26 +96,26 @@ jobs:
9696
runs-on: ubuntu-latest
9797
steps:
9898
- name: checkout
99-
uses: actions/checkout@v2
99+
uses: actions/checkout@master
100100

101101
# with:
102102
# token: ${{ secrets.ACCESS_TOKEN }}
103103
# - name: Checkout submodules
104-
# uses: actions/checkout@v2
104+
# uses: actions/checkout@master
105105
# with:
106106
# repository: tangjinzhou/antdv-demo
107107
# token: ${{ secrets.ACCESS_TOKEN }}
108108
# path: antdv-demo
109109
# submodules: true
110110

111111
- name: restore cache from package-lock.json
112-
uses: actions/cache@v1
112+
uses: actions/cache@v2
113113
with:
114114
path: package-temp-dir
115115
key: lock-${{ github.sha }}
116116

117117
- name: restore cache from node_modules
118-
uses: actions/cache@v1
118+
uses: actions/cache@v2
119119
with:
120120
path: node_modules
121121
key: node_modules-${{ hashFiles('**/package-temp-dir/package-lock.json') }}

0 commit comments

Comments
 (0)