File tree Expand file tree Collapse file tree 2 files changed +67
-2
lines changed
Expand file tree Collapse file tree 2 files changed +67
-2
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,43 @@ jobs:
193193 - dist
194194 - sizes/*.json
195195
196+ build_devtools_and_process_artifacts :
197+ docker : *docker
198+ environment : *environment
199+ parallelism : 20
200+ steps :
201+ - checkout
202+ - attach_workspace : *attach_workspace
203+ - *restore_yarn_cache
204+ - *run_yarn
205+ - run :
206+ environment :
207+ RELEASE_CHANNEL : experimental
208+ command : |
209+ cd packages/react-devtools
210+ npm pack
211+ - run :
212+ environment :
213+ RELEASE_CHANNEL : experimental
214+ command : |
215+ cd packages/react-devtools-core
216+ npm pack
217+ - run :
218+ environment :
219+ RELEASE_CHANNEL : experimental
220+ command : |
221+ cd packages/react-devtools-inline
222+ npm pack
223+ - run :
224+ environment :
225+ RELEASE_CHANNEL : experimental
226+ command : |
227+ cd packages/react-devtools-extensions
228+ yarn build
229+ - run : ./scripts/circleci/pack_and_store_devtools_artifacts.sh
230+ - store_artifacts :
231+ path : ./build/devtools.tgz
232+
196233 # These jobs are named differently so we can distinguish the stable and
197234 # and experimental artifacts
198235 process_artifacts : *process_artifacts
@@ -267,7 +304,7 @@ jobs:
267304 RELEASE_CHANNEL : experimental
268305 command : yarn test-build --maxWorkers=2
269306
270- test_build_devtools :
307+ test_devtools :
271308 docker : *docker
272309 environment : *environment
273310 steps :
@@ -402,7 +439,10 @@ workflows:
402439 - lint_build :
403440 requires :
404441 - build_experimental
405- - test_build_devtools :
442+ - test_devtools :
443+ requires :
444+ - build_experimental
445+ - build_devtools_and_process_artifacts :
406446 requires :
407447 - build_experimental
408448
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -e
4+
5+ mkdir -p build/devtools
6+
7+ cd packages/react-devtools
8+ npm pack
9+ mv ./react-devtools* .tgz ../../build/devtools/
10+
11+ cd ../react-devtools-core
12+ npm pack
13+ mv ./react-devtools-core* .tgz ../../build/devtools/
14+
15+ cd ../react-devtools-inline
16+ npm pack
17+ mv ./react-devtools-inline* .tgz ../../build/devtools/
18+
19+ cd ../react-devtools-extensions
20+ yarn build
21+ mv ./chrome/build/ReactDevTools.zip ../../build/devtools/chrome-extension.zip
22+ mv ./firefox/build/ReactDevTools.zip ../../build/devtools/firefox-extension.zip
23+
24+ # Compress all DevTools artifacts into a single tarball for easy download
25+ tar -zcvf ../../build/devtools.tgz ../../build/devtools
You can’t perform that action at this time.
0 commit comments