1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

New implementation of detecting when to publish ui

This commit is contained in:
Tom Gallacher 2017-01-06 15:00:36 +00:00
parent d54f8d4704
commit 22dd961fce

View File

@ -4,5 +4,9 @@
# Prelude
#
set -euo pipefail
# Set internal field seperator to `/` to split up urls
IFS='/'
[[ $(git diff --name-only) == *"ui/"* ]] && make -C ui publish | sed '/NPM_TOKEN/d'
read -ra ADDR <<< "$CIRCLE_COMPARE_URL"
[[ $(git diff --name-only "${ADDR[-1]}") == *"ui/"* ]] && make -C ui publish | sed '/NPM_TOKEN/d'