Skip to content

Commit 61da981

Browse files
committed
ci: update node version
1 parent c464227 commit 61da981

File tree

2 files changed

+30
-8
lines changed

2 files changed

+30
-8
lines changed

.github/workflows/build-uniapp.yml renamed to .github/workflows/build-uniapp-vue2.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build-uniapp
1+
name: build-uniapp-vue2
22

33
on:
44
push:
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [18.x, 20.x, 21.x, 22.x, 23.x, 24.x]
15+
node-version: [16.x, 18.x, 20.x, 21.x, 22.x, 23.x] # not support node >= 24.x
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -21,12 +21,6 @@ jobs:
2121
with:
2222
node-version: ${{ matrix.node-version }}
2323

24-
- name: Build with-uniapp-vue3
25-
working-directory: ./demos/with-uniapp-vue3
26-
run: |
27-
yarn install
28-
yarn run build:h5
29-
3024
- name: Build with-uniapp-vue2
3125
working-directory: ./demos/with-uniapp-vue2
3226
run: |
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: build-uniapp-vue3
2+
3+
on:
4+
push:
5+
branches: ["main", "develop"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x, 20.x, 21.x, 22.x, 23.x, 24.x] # node>=18.x
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Build with-uniapp-vue3
25+
working-directory: ./demos/with-uniapp-vue3
26+
run: |
27+
yarn install
28+
yarn run build:h5

0 commit comments

Comments
 (0)