Automatically check new commits with Prettier #6
Workflow file for this run
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: "Prettier Check" | |
on: | |
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 v20.15.0 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.15.0" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Check code with Prettier | |
run: pnpm exec prettier --check . |