2017-01-06 16:47:36 +02:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
|
|
|
#
|
|
|
|
# Prelude
|
|
|
|
#
|
|
|
|
set -euo pipefail
|
2017-01-06 17:00:36 +02:00
|
|
|
# Set internal field seperator to `/` to split up urls
|
|
|
|
IFS='/'
|
2017-01-06 16:47:36 +02:00
|
|
|
|
2017-01-06 17:00:36 +02:00
|
|
|
read -ra ADDR <<< "$CIRCLE_COMPARE_URL"
|
|
|
|
|
|
|
|
[[ $(git diff --name-only "${ADDR[-1]}") == *"ui/"* ]] && make -C ui publish | sed '/NPM_TOKEN/d'
|