File tree Expand file tree Collapse file tree 3 files changed +46
-36
lines changed
Expand file tree Collapse file tree 3 files changed +46
-36
lines changed Original file line number Diff line number Diff line change 1+ name : ' Build w/ React18 & 19'
2+
3+ on :
4+ workflow_call :
5+
6+ jobs :
7+ build :
8+ name : ' Build'
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ react : ['18', '19']
13+ env :
14+ CYPRESS_INSTALL_BINARY : 0
15+ steps :
16+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
18+ - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
19+ with :
20+ node-version-file : ' .nvmrc'
21+ cache : ' yarn'
22+
23+ - name : Install
24+ run : yarn install --immutable
25+
26+ - name : Install 18
27+ if : ${{ matrix.react == '18' }}
28+ run : |
29+ yarn add "@types/react@18" "@types/react-dom@18" --dev
30+ yarn add react@18 react-dom@18
31+
32+ - name : Build
33+ run : yarn build
34+
35+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
36+ with :
37+ name : build-${{ matrix.react }}
38+ path : packages/*/dist
Original file line number Diff line number Diff line change @@ -46,47 +46,16 @@ jobs:
4646 node-version-file : ' .nvmrc'
4747 cache : ' yarn'
4848
49- - name : Install and Build
49+ - name : Install
5050 run : yarn install --immutable
5151
52- test :
53- needs : ['build']
54- uses : ' ./.github/workflows/test.yml'
55-
5652 build :
5753 needs : ['install']
58- name : ' Build'
59- runs-on : ubuntu-latest
60- strategy :
61- matrix :
62- react : ['18', '19']
63- env :
64- CYPRESS_INSTALL_BINARY : 0
65- steps :
66- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
67-
68- - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
69- with :
70- node-version-file : ' .nvmrc'
71- cache : ' yarn'
54+ uses : ' ./.github/workflows/build.yml'
7255
73- - name : Install
74- run : yarn install --immutable
75-
76- - name : Install 19
77- if : ${{ matrix.react == '19' }}
78- run : |
79- echo "$(jq '.resolutions += {"@types/react": "npm:types-react@rc", "@types/react-dom": "npm:types-react-dom@rc" }' package.json)" > package.json
80- yarn add react@rc react-dom@rc
81- yarn
82-
83- - name : Build
84- run : yarn build
85-
86- - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
87- with :
88- name : build-${{ matrix.react }}
89- path : packages/*/dist
56+ test :
57+ needs : ['build']
58+ uses : ' ./.github/workflows/test.yml'
9059
9160 lint :
9261 needs : ['install']
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: 'Release - Snapshot'
33on : workflow_dispatch
44
55jobs :
6+ build :
7+ uses : ' ./.github/workflows/build.yml'
8+
69 test :
710 uses : ' ./.github/workflows/test.yml'
811 with :
You can’t perform that action at this time.
0 commit comments