From 1b89635b5c38c079609873823d665118133efadb Mon Sep 17 00:00:00 2001 From: bluwy Date: Mon, 3 Jul 2023 21:30:18 +0800 Subject: [PATCH] Fix CI lint command --- .github/workflows/ci.yml | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83867d38f9e2..57896a9cac6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,27 +53,8 @@ jobs: - name: Build (ignoring failures) run: pnpm run build || true - # Lint autofix cannot run on forks, so just skip those! See https://github.com/wearerequired/lint-action/issues/13 - - name: Lint (External) - if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != github.repository_owner }} - run: pnpm run lint - - # Otherwise, run lint autofixer - name: Lint - if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }} - uses: wearerequired/lint-action@v2.1.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - eslint: true - eslint_extensions: js,ts,cts,mts,cjs,mjs - prettier: false - auto_fix: false - git_name: fredkbot - git_email: fred+astrobot@astro.build - commit_message: "chore(lint): ${linter} fix" - github_token: ${{ secrets.GITHUB_TOKEN }} - neutral_check_on_warning: true + run: pnpm run lint # Checks that the formatter runs successfully on all files # In the future, we may have this fail PRs on unformatted code