Skip to content

Commit c763f2c

Browse files
author
Brian Vaughn
committed
Store node_modules generated by CI script as an artifact
1 parent d204747 commit c763f2c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ jobs:
4040
key: v1-node-{{ arch }}-{{ .Branch }}-{{ checksum "yarn.lock" }}
4141
paths:
4242
- node_modules
43+
44+
- store_artifacts:
45+
path: $CIRCLE_WORKING_DIRECTORY/build/node_modules.tar.gz

scripts/circleci/test_entry_point.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ if [ $((2 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
3030
COMMANDS_TO_RUN+=('yarn test-build-prod --maxWorkers=2')
3131
COMMANDS_TO_RUN+=('node ./scripts/tasks/danger')
3232
COMMANDS_TO_RUN+=('./scripts/circleci/upload_build.sh')
33+
COMMANDS_TO_RUN+=('tar -zcvf @build/node_modules.tar.gz @build/node_modules')
3334
fi
3435

3536
if [ $((3 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then

0 commit comments

Comments
 (0)