@samitouri / QOS-React / commits / 1dcab970fa

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

Andrew Clark committed Apr 3, 2019 at 18:15 UTC 1dcab970fa9979c89edafd48447b146830f44bfa
2 files changed +11 -4
.circleci/config.yml
+4 -1
@@ -44,4 +44,7 @@ jobs:
44 path: ./node_modules.tgz
45
46 - store_artifacts:
47 - path: ./scripts/error-codes/codes.json
\ No newline at end of file
47 + path: ./build.tgz
48 +
49 + - store_artifacts:
50 + path: ./scripts/error-codes/codes.json
scripts/circleci/pack_and_store_artifact.sh
+7 -3
@@ -2,10 +2,14 @@
2
3 set -e
4
5 +# Compress build directory into a single tarball for easy download
6 +tar -zcvf ./build.tgz ./build
7 +
8 # NPM pack all modules to ensure we archive the correct set of files
6 -for dir in ./build/node_modules/* ; do
9 +cd ./build/node_modules
10 +for dir in ./* ; do
11 npm pack "$dir"
12 done
13
10 -# Wrap everything in a single zip file for easy download by the publish script
11 -tar -zcvf ./node_modules.tgz ./*.tgz
\ No newline at end of file
14 +# Compress packed modules into a single tarball for easy download by the publish script
15 +tar -zcvf ../../node_modules.tgz ./*.tgz