-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (40 loc) · 1016 Bytes
/
build-demo.yml
File metadata and controls
50 lines (40 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build Demo
on:
workflow_call:
inputs:
deploy_subdir:
required: true
type: string
checkout_ref:
required: true
type: string
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ inputs.checkout_ref }}
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version-file: "frontend/package.json"
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: pnpm install
- name: Build app
run: pnpm run build:demo
env:
VITE_BASE_URL: "/${{ github.event.repository.name }}/${{ inputs.deploy_subdir }}/demo/"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: demo-dist
path: "frontend/apps/demo/dist"