diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 8af87ab..231abc6 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -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 diff --git a/package.json b/package.json index 22a03b2..ac71601 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "sideEffects": false, "scripts": { "lint": "eslint . --fix && prettier --write .", + "lint:check": "eslint . && prettier . --check", "dev": "run-p rollup:dev hugo:dev", "build": "rm -f ./static/bundled/js/* && run-s rollup:build hugo:build && yes | cp -rf ./exampleSite/public/css/* ./static/bundled/css", "server": "run-p rollup:server hugo:server",