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