Skip to content

deps(deps): bump @types/react from 18.3.2 to 18.3.10 #192

deps(deps): bump @types/react from 18.3.2 to 18.3.10

deps(deps): bump @types/react from 18.3.2 to 18.3.10 #192

name: Lint and Format Check
on: [push, pull_request]
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Run ESLint
run: npm run lint
- name: Run Prettier
run: npm run format
- name: Check for changes
shell: bash
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git diff --quiet || (git add . && git commit -m "style: format code with Prettier" && git push)