Add checks for invalid syntax post-i18n builds (#7935)

This commit is contained in:
Eric Bailey
2025-03-14 10:27:45 -05:00
committed by GitHub
parent cb54c9833e
commit dcc8b35146
4 changed files with 15 additions and 5 deletions
@@ -75,8 +75,11 @@ jobs:
- name: Prettier check
run: yarn prettier --check .
- name: Check & compile i18n
run: yarn intl:build
- name: 🔤 Compile translations
run: yarn intl:build 2>&1 | tee i18n.log
- name: Check for i18n compilation errors
run: if grep -q "invalid syntax" "i18n.log"; then echo "\n\nFound compilation errors!\n\n" && exit 1; else echo "\n\nNo compilation errors!\n\n"; fi
- name: Type check
run: yarn typecheck