-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (35 loc) · 965 Bytes
/
format.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
on:
- push
- pull_request
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
directory: [client, server]
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Install pnpm"
uses: pnpm/action-setup@v4
with:
version: 9
- name: "Install Node"
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
cache-dependency-path: ./${{ matrix.directory }}/pnpm-lock.yaml
- name: "Install dependencies"
working-directory: ./${{ matrix.directory }}
run: pnpm install
- name: "Format"
working-directory: ./${{ matrix.directory }}
run: pnpm format
- name: "Commit formatting changes"
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style(ci): fix formatting"
add_options: "-A"