-
-
Notifications
You must be signed in to change notification settings - Fork 248
41 lines (37 loc) · 1.13 KB
/
build-ui.yml
File metadata and controls
41 lines (37 loc) · 1.13 KB
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
name: build ui
on:
pull_request:
paths:
- "webapp/**"
- "pyproject.toml"
push:
paths:
- "webapp/**"
- "pyproject.toml"
branches: [master]
permissions:
contents: read
env:
NODE_VERSION: "25"
jobs:
build-ui:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "${{ env.NODE_VERSION }}"
- name: Setup pnpm
uses: pnpm/action-setup@eae0cfeb286e66ffb5155f1a79b90583a127a68b # v2.4.1
with:
version: 8
- name: Install dependencies
working-directory: ./webapp
run: pnpm install
- name: Build
working-directory: ./webapp
run: pnpm run build
- name: Check formatting with Prettier
working-directory: ./webapp
run: pnpm exec prettier . --check