-
Notifications
You must be signed in to change notification settings - Fork 16
49 lines (40 loc) · 1.19 KB
/
check-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
38
39
40
41
42
43
44
45
46
47
48
49
name: build 🏗️
on:
pull_request:
branches: [develop, staging, master, feature/**]
push:
branches: [develop, staging, master, feature/**]
workflow_dispatch:
jobs:
build_code:
name: run
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['>=18.12.x']
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Enable corepack
run: |
corepack enable
corepack prepare [email protected] --activate
yarn set version 4.2.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- name: Install deps
run: yarn install
- name: build
run: |
yarn nx run-many --all --target=build
yarn nx build-storybook webb-ui-components
# Fix: JavaScript heap out of memory
# https://github.com/actions/runner-images/issues/70#issuecomment-1191708172
env:
NODE_OPTIONS: '--max_old_space_size=4096'