File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+ workflow_dispatch :
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v6
17+
18+ - name : Setup Node.js
19+ uses : actions/setup-node@v6
20+ with :
21+ node-version : ' 22'
22+
23+ - name : Setup pnpm
24+ uses : pnpm/action-setup@v4
25+ with :
26+ version : 10
27+
28+ - name : Get pnpm store directory
29+ shell : bash
30+ run : |
31+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
32+
33+ - name : Setup pnpm cache
34+ uses : actions/cache@v4
35+ with :
36+ path : ${{ env.STORE_PATH }}
37+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
38+ restore-keys : |
39+ ${{ runner.os }}-pnpm-store-
40+
41+ - name : Install dependencies
42+ run : pnpm install --frozen-lockfile
43+
44+ - name : Build
45+ run : pnpm run build:full
46+
47+ - name : Upload build artifacts
48+ uses : actions/upload-artifact@v4
49+ with :
50+ name : dist
51+ path : dist/
You can’t perform that action at this time.
0 commit comments