Skip to content

Commit 1dcab97

Browse files
authored
Store entire build directory as CI artifacts (facebook#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
1 parent 43b1f74 commit 1dcab97

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.circleci/config.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,7 @@ jobs:
4444
path: ./node_modules.tgz
4545

4646
- store_artifacts:
47-
path: ./scripts/error-codes/codes.json
47+
path: ./build.tgz
48+
49+
- store_artifacts:
50+
path: ./scripts/error-codes/codes.json

scripts/circleci/pack_and_store_artifact.sh

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
set -e
44

5+
# Compress build directory into a single tarball for easy download
6+
tar -zcvf ./build.tgz ./build
7+
58
# 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
711
npm pack "$dir"
812
done
913

10-
# Wrap everything in a single zip file for easy download by the publish script
11-
tar -zcvf ./node_modules.tgz ./*.tgz
14+
# Compress packed modules into a single tarball for easy download by the publish script
15+
tar -zcvf ../../node_modules.tgz ./*.tgz

0 commit comments

Comments
 (0)