summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2023-07-03 21:55:02 +0800
committerGravatar GitHub <noreply@github.com> 2023-07-03 14:55:02 +0100
commit7419bb6cf200c51a79eb8fd30e113cf43485cb73 (patch)
treef6f131ea4701e7ae396a3f0838ee563c665b6e6c
parente7cea6f7557a9d8eacd72a02eace146bbcd072ce (diff)
downloadastro-7419bb6cf200c51a79eb8fd30e113cf43485cb73.tar.gz
astro-7419bb6cf200c51a79eb8fd30e113cf43485cb73.tar.zst
astro-7419bb6cf200c51a79eb8fd30e113cf43485cb73.zip
Fix CI lint command (#7554)
-rw-r--r--.github/workflows/ci.yml21
1 files changed, 1 insertions, 20 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 83867d38f..57896a9ca 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