Skip to content

Commit 2fd8c63

Browse files
committed
build frontend
1 parent 804f858 commit 2fd8c63

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/release.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,54 @@ env:
1010
REPO_NAME: BlueprintFramework/web
1111

1212
jobs:
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 }}
@@ -33,6 +81,12 @@ jobs:
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:

0 commit comments

Comments
 (0)