ci: regenerate the i18n types and check them for drift (#8494)

This commit is contained in:
nrenvo
2026-11-04 14:43:16 +00:00
committed by GitHub
parent 39ba1e64a6
commit dae542f772
3 changed files with 11 additions and 0 deletions
+9
View File
@@ -4,6 +4,7 @@ on:
pull_request:
paths:
- "src/**"
- "scripts/**"
- "**/*.js"
- "**/*.ts"
- "**/*.tsx"
@@ -41,6 +42,14 @@ jobs:
- run: pnpm install --frozen-lockfile
- name: Check generated i18n types are up to date
run: |
pnpm i18n:types
if ! git diff --exit-code -- src/types/generated; then
echo "::error::src/types/generated is stale; run pnpm i18n:types and commit the result"
exit 1
fi
- name: Run Prettier check
run: pnpm format:check