1+ name : Build components
2+
3+ on :
4+ pull_request :
5+
6+ jobs :
7+ extension :
8+ name : Build extension
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout repository
12+ uses : actions/checkout@v5
13+
14+ - name : Setup pnpm
15+ uses : pnpm/action-setup@v4
16+
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v5
19+ with :
20+ node-version : 22.x
21+ cache : ' pnpm'
22+ cache-dependency-path : ' ./pnpm-lock.yaml'
23+
24+ - name : Install dependencies
25+ run : pnpm install --frozen-lockfile
26+
27+ - name : Build extension
28+ run : pnpm ext build
29+
30+ - name : Upload extension
31+ uses : actions/upload-artifact@v4
32+ with :
33+ name : SMC Extension ${{ github.sha }}
34+ path : ./apps/extension/dist
35+
36+ dashboard :
37+ name : Build dashboard
38+ runs-on : ubuntu-latest
39+ steps :
40+ - name : Checkout repository
41+ uses : actions/checkout@v5
42+
43+ - name : Setup pnpm
44+ uses : pnpm/action-setup@v4
45+
46+ - name : Setup Node.js
47+ uses : actions/setup-node@v5
48+ with :
49+ node-version : 22.x
50+ cache : ' pnpm'
51+ cache-dependency-path : ' ./pnpm-lock.yaml'
52+
53+ - name : Install dependencies
54+ run : pnpm install --frozen-lockfile
55+
56+ - name : Build extension
57+ run : pnpm dash build
58+
59+ - name : Upload extension
60+ uses : actions/upload-artifact@v4
61+ with :
62+ name : SMC Dashboard ${{ github.sha }}
63+ path : ./apps/dashboard/dist
64+ api :
65+ name : Build API
66+ runs-on : ubuntu-latest
67+ steps :
68+ - name : Checkout repository
69+ uses : actions/checkout@v5
70+
71+ - name : Setup pnpm
72+ uses : pnpm/action-setup@v4
73+
74+ - name : Setup Node.js
75+ uses : actions/setup-node@v5
76+ with :
77+ node-version : 22.x
78+ cache : ' pnpm'
79+ cache-dependency-path : ' ./pnpm-lock.yaml'
80+
81+ - name : Install dependencies
82+ run : pnpm install --frozen-lockfile
83+
84+ - name : Build extension
85+ run : pnpm api build
86+
87+ - name : Upload extension
88+ uses : actions/upload-artifact@v4
89+ with :
90+ name : SMC API ${{ github.sha }}
91+ path : ./apps/api/dist
0 commit comments