forked from google-ai-edge/model-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 991 Bytes
/
build_ui_code.yaml
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
# This workflow will do a clean installation of node dependencies, cache/restore them, and build the UI code.
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Build UI code
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- 'src/ui/**'
pull_request:
branches: [ "main" ]
paths:
- 'src/ui/**'
jobs:
angular:
name: Angular Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/ui
strategy:
matrix:
node-version: ["18.19.1"]
steps:
- name: Checkout the source code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.19.1'
- name: Install dependencies
run: npm install
- name: Install rollup
run: npm install @rollup/rollup-linux-x64-gnu
- name: Build
run: npm run build