Skip to content

chore: improve react configuration #132

chore: improve react configuration

chore: improve react configuration #132

Workflow file for this run

name: PR Commit
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened
- ready_for_review
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9.9.0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm i --no-frozen-lockfile
- name: Lint commit messages
if: github.ref != 'refs/heads/main'
run: pnpm commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: Lint Markdown
run: pnpm lint:md
- name: Lint Format
run: pnpm run lint:prettier
- run: pnpm run eslint