Skip to content

Merge pull request #490 from yi-fan-song/patch-1 #1063

Merge pull request #490 from yi-fan-song/patch-1

Merge pull request #490 from yi-fan-song/patch-1 #1063

Workflow file for this run

name: Check & fix styling
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Prettier format
run: pnpm run format
- name: Lint fix
run: pnpm run lint:fix
- name: Commit potential changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling