2022-12-01 12:44:36 -05:00
|
|
|
name: Build
|
2022-12-01 12:42:47 -05:00
|
|
|
|
|
|
|
on:
|
2022-12-01 12:48:11 -05:00
|
|
|
workflow_dispatch:
|
2022-12-01 12:42:47 -05:00
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
paths:
|
2022-12-01 12:47:22 -05:00
|
|
|
- core/**
|
2022-12-01 12:42:47 -05:00
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
paths:
|
2022-12-01 12:47:22 -05:00
|
|
|
- core/**
|
2022-12-01 12:42:47 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
2022-12-01 12:47:22 -05:00
|
|
|
- name: Setup Node
|
2022-12-01 12:42:47 -05:00
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2022-12-01 12:47:22 -05:00
|
|
|
cache: yarn
|
2022-12-01 12:56:25 -05:00
|
|
|
cache-dependency-path: core/yarn.lock
|
2022-12-01 12:47:22 -05:00
|
|
|
node-version: 16
|
2022-12-01 12:42:47 -05:00
|
|
|
|
2022-12-01 12:47:22 -05:00
|
|
|
- name: Install
|
|
|
|
working-directory: ./core
|
2022-12-01 12:42:47 -05:00
|
|
|
run: |
|
2022-12-01 12:56:25 -05:00
|
|
|
yarn install --frozen-lockfile
|
2022-12-01 12:42:47 -05:00
|
|
|
|
|
|
|
- name: Build
|
2022-12-01 12:47:22 -05:00
|
|
|
working-directory: ./core
|
2022-12-01 12:42:47 -05:00
|
|
|
run: |
|
2022-12-01 12:56:25 -05:00
|
|
|
yarn build
|