From eaf743abb0e9e0c7a910b9bf4b2d0f10c35492f8 Mon Sep 17 00:00:00 2001 From: Ethan Date: Tue, 11 Aug 2026 09:14:27 +0100 Subject: [PATCH] ci: check formatting instead of rewriting files Update the formatting CI job to validate formatting instead of rewriting files. Replace pnpm run format:js with pnpm run format:js:check. format:js uses Prettier --write, which modifies files instead of validating them. format:js:check uses Prettier --check and fails when formatting differs. format:js:check is already defined in package.json and is used by the main lint script. This ensures the CI formatting job acts as a validation gate instead of silently rewriting files inside the runner. --- .github/workflows/cicd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 682c06c2..d4ccddb4 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -67,7 +67,7 @@ jobs: - uses: ./.github/actions/base-setup name: Base Setup - name: Run formatting - run: pnpm run format:js + run: pnpm run format:js:check # spell-check: # needs: install_modules