chore(deps): update moderndash website dependencies #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Code Checks" | |
on: | |
pull_request : | |
paths : | |
- '**.js' | |
- '**.ts' | |
- '**.svelte' | |
jobs: | |
eslint: | |
runs-on: ubuntu-latest | |
name: ESLint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{github.event.pull_request.head.ref}} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
- name : Use Node.js 20.x | |
uses : actions/setup-node@v3 | |
with : | |
node-version : 20.x | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Auto-fix ESLint errors | |
run: npm run lint:fix || true | |
- name: Commit auto-fixed ESLint errors | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: 🔧 Auto-fix ESLint errors | |
# only run if all files already auto fixed | |
- name : Run eslint on changed files | |
uses : Maggi64/eslint-plus-action@master | |
with : | |
extensions: .js,.ts,.svelte |