1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00
copilot/legacy/bin/on-changes-publish-ui
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01: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