-
Notifications
You must be signed in to change notification settings - Fork 471
37 lines (34 loc) · 1.14 KB
/
build.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
name: ⚙️ Build
on:
pull_request:
push:
branches: [main]
jobs:
libs:
if: ${{ !contains(github.head_ref, 'release/') }}
name: Build packages
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm run run-many:build:libs
- run: npx ts-node ./scripts/check-dist.ts
demo:
if: ${{ !contains(github.head_ref, 'release/') }}
name: Prerender of demo application
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx prerender demo
- run: tree ${{ env.DIST }} -P '*.html'
- name: Bundle size tracking
run: npx --yes bundlemon --config .github/.bundlemonrc.json
continue-on-error: true
env:
CI_COMMIT_SHA: ${{ env.CI_COMMIT_SHA }}
concurrency:
group: build-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true