Skip to content

Commit 0d638c0

Browse files
authored
Merge pull request #1938 from plotly/stop-on-npm-err
Abort build process when encountering npm errors
2 parents 62cf1df + de5e2d6 commit 0d638c0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.circleci/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ jobs:
5959
mkdir dash-package && cp dist/*.tar.gz dash-package/dash-package.tar.gz
6060
ls -la dash-package
6161
no_output_timeout: 30m
62+
- run:
63+
name: Display npm errors and exit on failed builds
64+
command: |
65+
if [ -d "/home/circleci/.npm/_logs" ]
66+
then
67+
cat /home/circleci/.npm/_logs/*
68+
exit 1
69+
fi
6270
- save_cache:
6371
key: dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}
6472
paths:

0 commit comments

Comments
 (0)