docs.yml

 1name: Docs
 2
 3on:
 4  pull_request:
 5    paths:
 6      - "docs/**"
 7  push:
 8    branches:
 9      - main
10
11jobs:
12  check_formatting:
13    name: "Check formatting"
14    runs-on: ubuntu-latest
15
16    steps:
17      - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
18
19      - uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
20        with:
21          version: 9
22
23      - run: pnpm dlx prettier . --check
24        working-directory: ./docs