@@ -28,17 +28,10 @@ jobs:
2828 run : echo "RUNNING=" >> $GITHUB_ENV
2929 if : " ! env.GIT_DIFF"
3030
31- - name : Get Yarn Cache Directory
32- id : yarn-cache
33- run : echo "::set-output name=dir::$(yarn cache dir)"
34- if : env.RUNNING
35- - name : Cache node dependencies
36- uses : actions/cache@v2
31+ - uses : actions/setup-node@v2
3732 with :
38- path : ${{ steps.yarn-cache.outputs.dir }}
39- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
40- restore-keys : |
41- ${{ runner.os }}-yarn-
33+ node-version : 14
34+ cache : yarn
4235 if : env.RUNNING
4336 - name : Install Package dependencies
4437 run : yarn install
5750 timeout-minutes : 10
5851 strategy :
5952 matrix :
60- node : ['12', '14']
53+ node : ['12', '14', '15' ]
6154 steps :
6255 - name : Set running flag
6356 run : echo "RUNNING=1" >> $GITHUB_ENV
@@ -74,33 +67,21 @@ jobs:
7467 run : echo "RUNNING=" >> $GITHUB_ENV
7568 if : " ! env.GIT_DIFF"
7669 - name : Set running flag
77- if : " matrix.node == '12 ' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)"
70+ if : " matrix.node == '14 ' && ! startsWith(github.ref, 'refs/tags/') && github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch)"
7871 run : echo "RUNNING=1" >> $GITHUB_ENV
7972 - name : Set running flag
80- if : matrix.node == '12 ' && startsWith(github.ref, 'refs/tags/v')
73+ if : matrix.node == '14 ' && startsWith(github.ref, 'refs/tags/v')
8174 run : echo "RUNNING=1" >> $GITHUB_ENV
8275 - name : Set running flag
8376 run : |
8477 if [[ ! -f package.json ]] || ! < package.json jq -r '.scripts | keys[]' | grep -qe '^cover$'; then
8578 echo "RUNNING=" >> $GITHUB_ENV
8679 fi
8780
88- - name : Setup node
89- uses : actions/setup-node@v1
81+ - uses : actions/setup-node@v2
9082 with :
9183 node-version : ${{ matrix.node }}
92- if : env.RUNNING
93- - name : Get Yarn Cache Directory
94- id : yarn-cache
95- run : echo "::set-output name=dir::$(yarn cache dir)"
96- if : env.RUNNING
97- - name : Cache node dependencies
98- uses : actions/cache@v2
99- with :
100- path : ${{ steps.yarn-cache.outputs.dir }}
101- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
102- restore-keys : |
103- ${{ runner.os }}-yarn-
84+ cache : yarn
10485 if : env.RUNNING
10586 - name : Install Package dependencies
10687 run : yarn install
11697 env :
11798 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
11899 COVERAGE_FILE : ./coverage/lcov.info
119- if : env.RUNNING && matrix.node == '12 '
100+ if : env.RUNNING && matrix.node == '14 '
120101
121102 package :
122103 name : Publish Package
@@ -159,29 +140,19 @@ jobs:
159140 if : env.RUNNING && matrix.target == 'gpr'
160141
161142 - name : Setup Node.js
162- uses : actions/setup-node@v1
143+ uses : actions/setup-node@v2
163144 with :
164- node-version : 12
145+ node-version : 14
165146 registry-url : https://registry.npmjs.org/
147+ cache : yarn
166148 if : env.RUNNING && matrix.target == 'npm'
167149 - name : Setup Node.js
168- uses : actions/setup-node@v1
150+ uses : actions/setup-node@v2
169151 with :
170- node-version : 12
152+ node-version : 14
171153 registry-url : https://npm.pkg.github.com
154+ cache : yarn
172155 if : env.RUNNING && matrix.target == 'gpr'
173- - name : Get Yarn Cache Directory
174- id : yarn-cache
175- run : echo "::set-output name=dir::$(yarn cache dir)"
176- if : env.RUNNING
177- - name : Cache node dependencies
178- uses : actions/cache@v2
179- with :
180- path : ${{ steps.yarn-cache.outputs.dir }}
181- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
182- restore-keys : |
183- ${{ runner.os }}-yarn-
184- if : env.RUNNING
185156 - name : Install Package dependencies
186157 run : yarn install
187158 if : env.RUNNING
@@ -212,16 +183,10 @@ jobs:
212183 - uses : actions/checkout@v2
213184 with :
214185 persist-credentials : false
215- - name : Get Yarn Cache Directory
216- id : yarn-cache
217- run : echo "::set-output name=dir::$(yarn cache dir)"
218- - name : Cache node dependencies
219- uses : actions/cache@v2
186+ - uses : actions/setup-node@v2
220187 with :
221- path : ${{ steps.yarn-cache.outputs.dir }}
222- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
223- restore-keys : |
224- ${{ runner.os }}-yarn-
188+ node-version : 14
189+ cache : yarn
225190
226191 - name : Install Package dependencies
227192 run : yarn install
@@ -248,16 +213,10 @@ jobs:
248213 if : startsWith(github.ref, 'refs/tags/v')
249214 steps :
250215 - uses : actions/checkout@v2
251- - name : Get Yarn Cache Directory
252- id : yarn-cache
253- run : echo "::set-output name=dir::$(yarn cache dir)"
254- - name : Cache node dependencies
255- uses : actions/cache@v2
216+ - uses : actions/setup-node@v2
256217 with :
257- path : ${{ steps.yarn-cache.outputs.dir }}
258- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
259- restore-keys : |
260- ${{ runner.os }}-yarn-
218+ node-version : 14
219+ cache : yarn
261220
262221 - name : Install Package dependencies
263222 run : yarn install
0 commit comments