chore(package.json): add lint:check script to run eslint and prettier in check mode

This commit is contained in:
Sped0n
2023-11-04 20:59:50 +08:00
parent df9d2d7d65
commit 558979285b
2 changed files with 2 additions and 5 deletions

View File

@@ -39,8 +39,4 @@ jobs:
run: pnpm install
- name: Lint
run: |
pnpm run lint
git config --global user.email "noreply@github.com"
git config --global user.name "CI"
git diff --quiet || (git add -A && git commit -m "style: ESlint && Prettier" && git push)
run: pnpm run lint:check