Skip to content

Commit 9001f02

Browse files
committed
chore(ci): GitHub actions use nvmrc file
1 parent c043b6c commit 9001f02

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
uses: actions/checkout@v2
1616

1717
- name: Install Node
18-
uses: actions/setup-node@v2
18+
uses: actions/setup-node@v4
1919
with:
20-
node-version: 12
20+
node-version-file: .nvmrc
2121

2222
- name: Install Yarn
2323
run: npm install -g yarn
@@ -47,7 +47,7 @@ jobs:
4747
- name: Install Node
4848
uses: actions/setup-node@v2
4949
with:
50-
node-version: 12
50+
node-version-file: .nvmrc
5151

5252
- name: Install Yarn
5353
run: npm install -g yarn
@@ -77,7 +77,7 @@ jobs:
7777
- name: Install Node
7878
uses: actions/setup-node@v2
7979
with:
80-
node-version: 12
80+
node-version-file: .nvmrc
8181

8282
- name: Install Yarn
8383
run: npm install -g yarn

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Node
2121
uses: actions/setup-node@v2
2222
with:
23-
node-version: 12
23+
node-version-file: .nvmrc
2424

2525
- name: Install Yarn
2626
run: npm install -g yarn
@@ -50,7 +50,7 @@ jobs:
5050
- name: Install Node
5151
uses: actions/setup-node@v2
5252
with:
53-
node-version: 12
53+
node-version-file: .nvmrc
5454

5555
- name: Install Yarn
5656
run: npm install -g yarn
@@ -84,7 +84,7 @@ jobs:
8484
- name: Install Node
8585
uses: actions/setup-node@v2
8686
with:
87-
node-version: 12
87+
node-version-file: .nvmrc
8888

8989
- name: Install Yarn
9090
run: npm install -g yarn

0 commit comments

Comments
 (0)