File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Release
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ build :
8+ strategy :
9+ matrix :
10+ os : [ubuntu-latest, windows-latest, macos-latest]
11+ include :
12+ - os : ubuntu-latest
13+ artifact-name : linux-dist
14+ - os : windows-latest
15+ artifact-name : windows-dist
16+ - os : macos-latest
17+ artifact-name : macos-dist
18+ runs-on : ${{ matrix.os }}
19+
20+ steps :
21+ - name : Checkout code
22+ uses : actions/checkout@v4
23+
24+ - name : Setup Node.js
25+ uses : actions/setup-node@v4
26+ with :
27+ node-version : 22
28+ cache : ' npm'
29+
30+ - name : Install dependencies
31+ run : npm ci
32+
33+ - name : Build application
34+ run : npm run dist
35+
36+ - name : Upload build artifacts
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : ${{ matrix.artifact-name }}
40+ path : dist/
You can’t perform that action at this time.
0 commit comments