ci: validate dist via git diff

This commit is contained in:
Amin Yahyaabadi 2024-03-31 23:40:44 -07:00
parent c930e9c0c7
commit 4f1627cf7a
1 changed files with 8 additions and 0 deletions

View File

@ -61,6 +61,14 @@ jobs:
run: | run: |
pnpm run test.lint pnpm run test.lint
- name: Validate Dist
run: |
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --text dist/
exit 1
fi
- name: Upload Dist - name: Upload Dist
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with: