From fd8573529b35515e7f5bc306c79235fa27db6cb3 Mon Sep 17 00:00:00 2001 From: Sara Tavares <29093946+stavares843@users.noreply.github.com> Date: Wed, 28 Dec 2022 13:29:57 +0000 Subject: [PATCH] chore(prettier): improve ci (#9947) * Update prettier.yml * Update DEVELOPERS.md * Update prettier.yml * Update DEVELOPERS.md * Update .github/workflows/prettier.yml Co-authored-by: Han Qiao --- .github/workflows/prettier.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index c71fb46be16..43305fc1aed 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -13,8 +13,13 @@ jobs: uses: actions/checkout@v2 # disable this check while we migrate to monorepo - name: Run prettier - run: |- - npx prettier -c 'apps/**/*.{js,jsx,ts,tsx,css,md,json}' + uses: EPMatt/reviewdog-action-prettier@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + level: warning + command: npx prettier -c 'apps/**/*.{js,jsx,ts,tsx,css,md,json}' + # run: |- # function run_check() { # if $(grep -q '"prettier"' "$1") ; then @@ -35,5 +40,9 @@ jobs: - name: Check out repo uses: actions/checkout@v2 - name: Run prettier - run: |- - npx prettier -c 'i18n/**/*.{js,jsx,ts,tsx,css,md,json}' + uses: EPMatt/reviewdog-action-prettier@v1 + with: + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + level: warning + command: npx prettier -c 'i18n/**/*.{js,jsx,ts,tsx,css,md,json}'