Skip to content

Commit a1d43b1

Browse files
committed
Switch to using Volta for CI Node version
1 parent 3287ecb commit a1d43b1

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ jobs:
2020
- name: Check out a copy of the repo
2121
uses: actions/checkout@v2
2222

23-
- name: Use Node.js ${{ env.NODE_VERSION }}
24-
uses: actions/setup-node@v2-beta
25-
with:
26-
node-version: ${{ env.NODE_VERSION }}
23+
- name: Use Node.js 14
24+
uses: volta-cli/action@v4
2725

2826
- name: Get Yarn cache path
2927
id: yarn-cache-dir-path
@@ -55,10 +53,8 @@ jobs:
5553
- name: Check out a copy of the repo
5654
uses: actions/checkout@v2
5755

58-
- name: Use Node.js ${{ env.NODE_VERSION }}
59-
uses: actions/setup-node@v2-beta
60-
with:
61-
node-version: ${{ env.NODE_VERSION }}
56+
- name: Use Node.js 14
57+
uses: volta-cli/action@v4
6258

6359
- name: Get Yarn cache path
6460
id: yarn-cache-dir-path
@@ -71,8 +67,8 @@ jobs:
7167
path: |
7268
${{ steps.yarn-cache-dir-path.outputs.dir }}
7369
node_modules
74-
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
75-
restore-keys: ${{ runner.os }}-${{ env.NODE_VERSION }}-
70+
key: ${{ runner.os }}-14-${{ hashFiles('**/yarn.lock') }}
71+
restore-keys: ${{ runner.os }}-14-
7672

7773
- name: Install dependencies
7874
run: yarn install --frozen-lockfile

0 commit comments

Comments
 (0)