fix(ci): run percy on storybook config changes

This commit is contained in:
Łukasz Mierzwa
2020-10-12 11:45:43 +01:00
committed by Łukasz Mierzwa
parent f57cf94849
commit a3b96ee7f1

View File

@@ -16,6 +16,9 @@ git log --no-merges --name-only --pretty=format: ${RANGE} | grep -Ev '^$' | sort
if [[ "${FILE}" =~ ^ui/src/.+ ]]; then
echo "[P] ${FILE}"
exit 1
elif [[ "${FILE}" =~ ^ui/.storybook/.+ ]]; then
echo "[P] ${FILE}"
exit 1
elif [[ "${FILE}" == "ui/package.json" ]]; then
echo "[?] ${FILE}"
git diff --no-prefix --diff-filter=M --unified=0 ${RANGE} -- ui/package.json | grep -E '^\+ ' | tr -d '":,' | while read I NAME VERSION ; do