File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1010 REPO_NAME : BlueprintFramework/web
1111
1212jobs :
13+ build-frontend :
14+ name : Build Frontend
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout sources
18+ uses : actions/checkout@v4
19+
20+ - name : Setup Node.js
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : ' 22'
24+
25+ - name : Setup pnpm
26+ uses : pnpm/action-setup@v2
27+ with :
28+ version : 8
29+ run_install : false
30+
31+ - name : Get pnpm store directory
32+ id : pnpm-cache
33+ shell : bash
34+ run : |
35+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
36+
37+ - name : Setup pnpm cache
38+ uses : actions/cache@v3
39+ with :
40+ path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
41+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42+ restore-keys : |
43+ ${{ runner.os }}-pnpm-store-
44+
45+ - name : Install frontend dependencies
46+ run : |
47+ cd ./apps/frontend
48+ pnpm install
49+
50+ - name : Build frontend
51+ run : |
52+ cd ./apps/frontend
53+ pnpm generate
54+
55+ - name : Upload frontend build
56+ uses : actions/upload-artifact@v4
57+ with :
58+ name : frontend-build
59+ path : apps/frontend/.output/public
60+
1361 dist :
1462 name : Dist
1563 runs-on : ${{ matrix.os }}
3381 - name : Checkout sources
3482 uses : actions/checkout@v4
3583
84+ - name : Download frontend build
85+ uses : actions/download-artifact@v4
86+ with :
87+ name : frontend-build
88+ path : frontend/.output/public
89+
3690 - name : Install ${{ matrix.rust }} toolchain
3791 uses : actions-rs/toolchain@v1
3892 with :
You can’t perform that action at this time.
0 commit comments