-
Notifications
You must be signed in to change notification settings - Fork 32
42 lines (34 loc) · 940 Bytes
/
static.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
40
41
42
name: Verify static build still works
on:
pull_request:
push:
branches:
- master
- dev
tags:
- "v*"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
static:
name: Do a static build
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Check https://github.com/livepeer/go-livepeer/pull/1891
# for ref value discussion
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
- name: yarn install
run: yarn install --frozen-lockfile --ignore-scripts
- name: build api dependency
run: cd packages/api && yarn run prepare
- name: static build
run: cd packages/www && yarn run static