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 <sweatybridge@gmail.com>
This commit is contained in:
Sara TavaresandHan Qiao authored and GitHub committed 2022-12-28 21:29:57 +08:00
1 parent b1dbcc522c
commit fd8573529b
1 file changed
+13 -4
+13 -4
View File
@@ -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}'