Skip to content

Commit f15d9ff

Browse files
committed
ci: add build with-next
1 parent 664ee77 commit f15d9ff

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

.github/workflows/build-demos.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ jobs:
4848
pnpm install --no-frozen-lockfile
4949
pnpm run build
5050
51-
- name: Build with-next
52-
working-directory: ./demos/with-next
53-
run: |
54-
pnpm install --no-frozen-lockfile
55-
pnpm run build
56-
5751
- name: Build with-vue2.6
5852
working-directory: ./demos/with-vue2.6
5953
run: |

.github/workflows/build-nextjs.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: build-demos
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]
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+
- uses: pnpm/action-setup@v3
24+
with:
25+
version: 8
26+
27+
- name: Build with-next
28+
working-directory: ./demos/with-next
29+
run: |
30+
pnpm install --no-frozen-lockfile
31+
pnpm run build
32+
33+

0 commit comments

Comments
 (0)