Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Commit 42e8353

Browse files
author
Ernest
committed
build: use lts version
1 parent a393f3c commit 42e8353

File tree

6 files changed

+11
-21
lines changed

6 files changed

+11
-21
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,24 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v3
1111

12-
- name: Use Node.js 18
12+
- name: Use Node.js
1313
uses: actions/setup-node@v3
1414
with:
15-
node-version: 18
15+
node-version-file: .nvmrc
1616

1717
- run: yarn install
1818
- run: yarn lint
1919

2020
build:
2121
runs-on: ubuntu-latest
2222

23-
strategy:
24-
matrix:
25-
node-version: [14.x, 16.x, 18.x]
26-
2723
steps:
2824
- uses: actions/checkout@v3
2925

30-
- name: Use Node.js ${{ matrix.node-version }}
26+
- name: Use Node.js
3127
uses: actions/setup-node@v3
3228
with:
33-
node-version: ${{ matrix.node-version }}
29+
node-version-file: .nvmrc
3430

3531
- run: yarn install
3632
- run: yarn build

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v3
1313

14-
- name: Use Node.js 14
14+
- name: Use Node.js
1515
uses: actions/setup-node@v3
1616
with:
17-
node-version: 14.x
17+
node-version-file: .nvmrc
1818

1919
- name: Setup user
2020
run: |

.github/workflows/examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
with:
1414
ref: main
1515

16-
- name: Use Node.js 14
16+
- name: Use Node.js
1717
uses: actions/setup-node@v3
1818
with:
19-
node-version: 14.x
19+
node-version-file: .nvmrc
2020

2121
- name: Setup user
2222
run: |

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,13 @@ jobs:
88
release:
99
runs-on: ubuntu-latest
1010

11-
strategy:
12-
matrix:
13-
node-version: [18.x]
14-
1511
steps:
1612
- uses: actions/checkout@v3
1713

18-
- name: Use Node.js ${{ matrix.node-version }}
14+
- name: Use Node.js
1915
uses: actions/setup-node@v3
2016
with:
21-
node-version: ${{ matrix.node-version }}
17+
node-version-file: .nvmrc
2218

2319
- name: Install
2420
run: yarn

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,5 @@
7777
},
7878
"peerDependencies": {
7979
"vue": "^3.2.0"
80-
},
81-
"engines": {
82-
"node": "^14 || ^16 || >=18"
8380
}
8481
}

0 commit comments

Comments
 (0)