joyent-portal/bin/on-changes-publish-ui
2017-01-06 15:26:18 +00:00

17 lines
284 B
Bash
Executable File

#! /usr/bin/env bash
#
# Prelude
#
set -euo pipefail
set -x
# Set internal field seperator to `/` to split up urls
IFS='/'
read -ra ADDR <<< "$CIRCLE_COMPARE_URL"
if [[ "$(git diff --name-only """${ADDR[-1]}""")" == *"ui/"* ]]
then
make -C ui publish | sed '/NPM_TOKEN/d'
fi