Skip to content

Automatically check new commits with Prettier #4

Automatically check new commits with Prettier

Automatically check new commits with Prettier #4

Workflow file for this run

name: "Prettier Check"
on:
push:
pull_request:
jobs:
check-prettier:
name: Prettier Check
runs-on: ubuntu-latest
steps:
- name: Download repo
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Check code with Prettier
run: pnpm exec prettier --check .