diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 78d5b977fd3d4c437fba9ae3a23e888f37bcfb81..b5472d32ceffdc6012ec9d9a592f689e42d3ea7c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -260,7 +260,13 @@ jobs: key: prettier-main-cache - name: Lint - run: pnpm prettier --cache-location .cache/prettier + run: | + pnpm prettier --write --cache-location .cache/prettier + git diff --quiet || { + echo "[ERROR] Please apply the changes prettier suggests:" + git diff --color=always + exit 1 + } - name: Remove cache if: github.event_name == 'push'