From 26c972e3653882f48aabeea8d93bc198666b61fe Mon Sep 17 00:00:00 2001 From: Swapnil Tripathi Date: Thu, 15 Aug 2024 01:01:49 +0530 Subject: [PATCH] fix formatting workflow Signed-off-by: Swapnil Tripathi --- .github/workflows/main.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f72846e..b63f065 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,19 +16,11 @@ jobs: steps: - name: Checkout Repository uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Install Dependencies - run: yarn install - working-directory: src/frontend - - name: Format Frontend - run: yarn format - working-directory: src/frontend + - name: Prettify code + uses: creyD/prettier_action@v4.3 + with: + prettier_options: --write src/frontend/**/*.{ts,tsx} - name: Post Formatting Check run: git diff --exit-code @@ -57,8 +49,8 @@ jobs: - name: Format Backend run: | - cd src/core black . + working-directory: src/core - name: Post Formatting Check run: git diff --exit-code