Skip to content

Commit 4f1627c

Browse files
committed
ci: validate dist via git diff
1 parent c930e9c commit 4f1627c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ jobs:
6161
run: |
6262
pnpm run test.lint
6363
64+
- name: Validate Dist
65+
run: |
66+
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
67+
echo "Detected uncommitted changes after build. See status below:"
68+
git diff --ignore-space-at-eol --text dist/
69+
exit 1
70+
fi
71+
6472
- name: Upload Dist
6573
uses: actions/upload-artifact@v3
6674
with:

0 commit comments

Comments
 (0)