Skip to content

Commit

Permalink
build: use lts version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest committed Mar 26, 2024
1 parent a393f3c commit 42e8353
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 21 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,24 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Use Node.js 18
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc

- run: yarn install
- run: yarn lint

build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version-file: .nvmrc

- run: yarn install
- run: yarn build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
steps:
- uses: actions/checkout@v3

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

- name: Setup user
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
with:
ref: main

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

- name: Setup user
run: |
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ jobs:
release:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version-file: .nvmrc

- name: Install
run: yarn
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,5 @@
},
"peerDependencies": {
"vue": "^3.2.0"
},
"engines": {
"node": "^14 || ^16 || >=18"
}
}

0 comments on commit 42e8353

Please sign in to comment.