react/scripts/circleci/pack_and_store_artifact.sh
Andrew Clark 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
2019-04-03 18:15:33 -07:00

16 lines
385 B
Bash
Executable File

#!/bin/bash
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
cd ./build/node_modules
for dir in ./* ; do
npm pack "$dir"
done
# Compress packed modules into a single tarball for easy download by the publish script
tar -zcvf ../../node_modules.tgz ./*.tgz