-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (32 loc) · 968 Bytes
/
build-ui.yml
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
name: Build and verify source code
on:
workflow_call:
jobs:
build-image:
runs-on: ubuntu-latest
name: "Build and Verify"
steps:
- uses: project-ncl/sbomer/.github/actions/checkout@main
if: github.event_name == 'pull_request_target'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
triggering-actor: ${{ github.triggering_actor }}
repo-ref: ${{ github.event.pull_request.head.ref }}
repo-full-name: ${{ github.event.pull_request.head.repo.full_name }}
- uses: actions/checkout@v4
if: github.event_name != 'pull_request_target'
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Build
run: |
cd ui
npm install
npm run build
- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: dist-ui
path: |
ui/dist