Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix: Try to fix the prettier github action (#26970)

Ivan Vasilov4a43f3b854f6
diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml
index c589ba58afa..9d7053db16b 100644
--- a/.github/workflows/prettier.yml
+++ b/.github/workflows/prettier.yml
@@ -25,12 +25,10 @@ jobs:
# Installing all dependencies takes up to three minutes, hacking around to only installing prettier+deps
- name: Download dependencies
run: |
- rm package.json
- rm package-lock.json
- npm i [email protected] prettier-plugin-sql-cst
+ npm ci
- name: Run prettier
run: |-
- npx prettier -c 'apps/**/*.{js,jsx,ts,tsx,css,md,mdx,json}'
+ npm run test:prettier
# i18n is not a node package, so we handle that one separately
format-i18n:
diff --git a/package.json b/package.json
index 0f1d3593723..fabe54eaa71 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
"dev:design-system": "turbo run dev --filter=design-system --parallel",
"lint": "turbo run lint",
"typecheck": "turbo --continue typecheck",
+ "test:prettier": "prettier -c 'apps/**/*.{js,jsx,ts,tsx,css,md,mdx,json}'",
"format": "prettier --write \"apps/**/*.{js,jsx,ts,tsx,css,md,mdx,json}\" \"packages/pg-meta/**/*.ts\"",
"docker:dev": "cd docker && docker compose -f docker-compose.yml -f ./dev/docker-compose.dev.yml up --renew-anon-volumes",
"docker:up": "cd docker && docker compose up",