From d7894f42544c9d7c01f1a0ff85ef79ab7c82f533 Mon Sep 17 00:00:00 2001 From: Marcel Cruz <12413903+marcelscruz@users.noreply.github.com> Date: Tue, 9 Jul 2024 13:31:42 +0200 Subject: [PATCH] Add Prettier on CI --- .github/workflows/update-db-and-readme.yml | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-db-and-readme.yml b/.github/workflows/update-db-and-readme.yml index b52ba58d..3e8bf341 100644 --- a/.github/workflows/update-db-and-readme.yml +++ b/.github/workflows/update-db-and-readme.yml @@ -16,6 +16,7 @@ jobs: - run: npm install - run: npm run update-db - run: npm run update-readme + - run: npm run prettier:format - run: git add . - run: git commit -m "Auto updating db and README.md" || echo "Nothing to commit" - run: git push origin HEAD:main diff --git a/package.json b/package.json index ca239172..06ba2263 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "description": "The API for the resources listed on Dev Resources.", "scripts": { "update-db": "ts-node utils/db/update-db.js", - "update-readme": "ts-node utils/readme/update-readme.js" + "update-readme": "ts-node utils/readme/update-readme.js", + "prettier:format": "prettier --write \"**/*.{ts,tsx,js,md,mdx,css,yaml}\"" }, "dependencies": { "@types/node": "^18.11.9",