diff --git a/bin/on-changes b/bin/on-changes new file mode 100755 index 00000000..f93c82d3 --- /dev/null +++ b/bin/on-changes @@ -0,0 +1,8 @@ +#! /usr/bin/env bash + +# +# Prelude +# +set -euo pipefail + +[[ $(git diff --name-only) == *"$1"* ]] diff --git a/circle.yml b/circle.yml index a29fe78d..cc02b4d9 100644 --- a/circle.yml +++ b/circle.yml @@ -32,7 +32,7 @@ deployment: branch: master commands: - ./bin/docker-login - - [[ $(git diff --name-only) == *'ui/'* ]] && make -C ui publish | sed '/NPM_TOKEN/d' + - ./bin/on-changes && make -C ui publish | sed '/NPM_TOKEN/d' - make -j2 build | sed '/NPM_TOKEN/d' - make -j2 push | sed '/NPM_TOKEN/d' - ./bin/deploy