1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00
copilot/bin/on-changes-publish-ui
2017-01-06 15:00:36 +00:00

13 lines
257 B
Bash
Executable File

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