Skip to content

Commit ac58f7b

Browse files
committed
添加构建workflow
1 parent f7f552e commit ac58f7b

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/bundle.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build Bundle
2+
on:
3+
push:
4+
branches: [main, master]
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
branches: [main, master]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: [16.x, 18.x, 20.x, 22.x, 23.x]
16+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: "npm"
25+
- run: npm ci
26+
- run: npm run build
27+
28+
- name: Upload artifact
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: enroll_nx.build-${{ github.ref_name }}-${{ github.sha }}.zip
32+
path: |
33+
manifest.json
34+
assets/
35+
dist/

0 commit comments

Comments
 (0)