Skip to content

try again

try again #6

Workflow file for this run

name: Lint JSX (eslint, prettier)
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint JSX (eslint, prettier)
runs-on: ubuntu-latest
steps:
- name: 📦 Checkout project repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 📦 Setup Node + NPM + install deps
uses: ./.github/actions/setup-node-npm-install
- name: 🏃‍♂️ Run ESLint PR
if: github.event_name == 'pull_request'
uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
eslint_flags: ". --ext .js,.jsx,.ts,.tsx"
- name: 🏃‍♂️ Run ESLint PR
if: github.event_name != 'pull_request'
run: npm run lint