Files
react/scripts/ci/pack_and_store_devtools_artifacts.sh
lauren 14f7c07271 [ci] Try to parallelize devtools builds (#32266)
Building DevTools is currently the long pole for the runtime CI job.
Let's see if we can get the overall runtime for runtime build and test
down by speeding this one step up.
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32266).
* #32267
* __->__ #32266
2025-01-30 11:49:04 -05:00

33 lines
735 B
Bash
Executable File

#!/bin/bash
set -e
mkdir -p build/devtools
cd packages/react-devtools
npm pack
mv ./react-devtools*.tgz ../../build/devtools/
cd ../react-devtools-core
npm pack
mv ./react-devtools-core*.tgz ../../build/devtools/
cd ../react-devtools-inline
npm pack
mv ./react-devtools-inline*.tgz ../../build/devtools/
cd ../react-devtools-extensions
if [[ -n "$1" ]]; then
yarn build:$1
mv ./$1/build/ReactDevTools.zip ../../build/devtools/$1-extension.zip
else
yarn build
for browser in chrome firefox edge; do
mv ./$browser/build/ReactDevTools.zip ../../build/devtools/$browser-extension.zip
done
fi
# Compress all DevTools artifacts into a single tarball for easy download
cd ../../build/devtools
tar -zcvf ../devtools.tgz .