Skip to content

Commit 84e7b20

Browse files
committed
Add format workflow
1 parent addddb6 commit 84e7b20

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

.github/workflows/format.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Format Files
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
setup:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out code
13+
uses: actions/checkout@v4
14+
15+
- name: Setup pnpm
16+
uses: pnpm/action-setup@v4
17+
with:
18+
version: 9
19+
run_install: false
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20
25+
cache: pnpm
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Format files
31+
run: pnpm run format
32+
33+
- name: Commit changes
34+
uses: stefanzweifel/git-auto-commit-action@v5
35+
with:
36+
commit_message: "ci: Format files"

.github/workflows/static_checks.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,3 @@ jobs:
7272
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
7373
- name: ESLint check
7474
run: pnpm check:lint
75-
- name: Format files
76-
run: pnpm format
77-
- name: Commit changes
78-
uses: stefanzweifel/git-auto-commit-action@v5
79-
with:
80-
commit_message: "ci: Format files"

0 commit comments

Comments
 (0)