From f5f2f38ea5be45157b3d1c6ec5dc5990b256dc75 Mon Sep 17 00:00:00 2001 From: kumavis Date: Thu, 18 Nov 2021 10:57:47 -1000 Subject: [PATCH] ci - fix yarn-audit (#12738) * ci/yarn-audit - ensure error propagation * ci/yarn-audit - ensure dependencies are installed first --- .circleci/config.yml | 4 +++- .circleci/scripts/yarn-audit.sh | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 207593689..779d76a42 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,7 +25,9 @@ workflows: only: - /^Version-v(\d+)[.](\d+)[.](\d+)/ - prep-deps - - test-deps-audit + - test-deps-audit: + requires: + - prep-deps - test-deps-depcheck: requires: - prep-deps diff --git a/.circleci/scripts/yarn-audit.sh b/.circleci/scripts/yarn-audit.sh index 717b5f456..f24c86a07 100755 --- a/.circleci/scripts/yarn-audit.sh +++ b/.circleci/scripts/yarn-audit.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash +set -e set -u +set -x set -o pipefail # use `improved-yarn-audit` since that allows for exclude