File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 40
40
key : v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
41
41
paths :
42
42
- node_modules
43
+
44
+ - store_artifacts :
45
+ path : ./node_modules.tgz
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ # NPM pack all modules to ensure we archive the correct set of files
6
+ for dir in ./build/node_modules/* ; do
7
+ npm pack " $dir "
8
+ done
9
+
10
+ # Wrap everything in a single zip file for easy download by the publish script
11
+ tar -zcvf ./node_modules.tgz ./* .tgz
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ if [ $((2 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
30
30
COMMANDS_TO_RUN+=(' yarn test-build-prod --maxWorkers=2' )
31
31
COMMANDS_TO_RUN+=(' node ./scripts/tasks/danger' )
32
32
COMMANDS_TO_RUN+=(' ./scripts/circleci/upload_build.sh' )
33
+ COMMANDS_TO_RUN+=(' ./scripts/circleci/pack_and_store_artifact.sh' )
33
34
fi
34
35
35
36
if [ $(( 3 % CIRCLE_NODE_TOTAL)) -eq " $CIRCLE_NODE_INDEX " ]; then
You can’t perform that action at this time.
0 commit comments