Skip to content

deps(deps): bump next from 14.2.3 to 14.2.8 #165

deps(deps): bump next from 14.2.3 to 14.2.8

deps(deps): bump next from 14.2.3 to 14.2.8 #165

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)