-
Notifications
You must be signed in to change notification settings - Fork 110
38 lines (31 loc) · 932 Bytes
/
build.yml
File metadata and controls
38 lines (31 loc) · 932 Bytes
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 w/ React18 & 19'
on:
workflow_call:
jobs:
build:
name: 'Build'
runs-on: ubuntu-latest
strategy:
matrix:
react: ['18', '19']
env:
CYPRESS_INSTALL_BINARY: 0
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install
run: yarn install --immutable
- name: Install 18
if: ${{ matrix.react == '18' }}
run: |
yarn add "@types/react@18" "@types/react-dom@18" --dev
yarn add react@18 react-dom@18
- name: Build
run: yarn build
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: build-${{ matrix.react }}
path: packages/*/dist