Skip to content

Commit 6c969f6

Browse files
committed
chore: configure vercel build ignore script to skip non-essential file changes
1 parent af1274e commit 6c969f6

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

vercel-ignore.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CHANGED_FILES=$(git diff --name-only HEAD^ HEAD)
2+
3+
if [ -z "$CHANGED_FILES" ]; then
4+
exit 0
5+
fi
6+
7+
if echo "$CHANGED_FILES" | grep -qvE '(^\.github/|^\.husky/|\.md$|\.test\.[jt]sx?$)'; then
8+
exit 1
9+
else
10+
exit 0
11+
fi

vercel.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignoreCommand": "bash vercel-ignore.sh"
3+
}

0 commit comments

Comments
 (0)