Skip to content

deps(deps): bump @types/node from 20.12.12 to 20.14.9 #92

deps(deps): bump @types/node from 20.12.12 to 20.14.9

deps(deps): bump @types/node from 20.12.12 to 20.14.9 #92

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)