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:
Andrew Clark
2019-04-03 18:15:33 -07:00
committed by GitHub
parent 43b1f74c88
commit 1dcab970fa
2 changed files with 11 additions and 4 deletions
+4 -1
View File
@@ -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
+7 -3
View File
@@ -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