mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Store entire build directory as CI artifacts (#15310)
* Store FB bundles as CI artifacts Updates the Circle CI config to store Facebook bundles as build artifacts. We already do this for our npm packages. * Might as well store everything in build/ * Store build directory as a tarball So it's easy to download
This commit is contained in:
@@ -44,4 +44,7 @@ jobs:
|
||||
path: ./node_modules.tgz
|
||||
|
||||
- store_artifacts:
|
||||
path: ./scripts/error-codes/codes.json
|
||||
path: ./build.tgz
|
||||
|
||||
- store_artifacts:
|
||||
path: ./scripts/error-codes/codes.json
|
||||
|
||||
@@ -2,10 +2,14 @@
|
||||
|
||||
set -e
|
||||
|
||||
# Compress build directory into a single tarball for easy download
|
||||
tar -zcvf ./build.tgz ./build
|
||||
|
||||
# NPM pack all modules to ensure we archive the correct set of files
|
||||
for dir in ./build/node_modules/* ; do
|
||||
cd ./build/node_modules
|
||||
for dir in ./* ; do
|
||||
npm pack "$dir"
|
||||
done
|
||||
|
||||
# Wrap everything in a single zip file for easy download by the publish script
|
||||
tar -zcvf ./node_modules.tgz ./*.tgz
|
||||
# Compress packed modules into a single tarball for easy download by the publish script
|
||||
tar -zcvf ../../node_modules.tgz ./*.tgz
|
||||
|
||||
Reference in New Issue
Block a user