Skip to content

Commit 9ab8318

Browse files
authored
chore: add prettier action
1 parent 845fbbf commit 9ab8318

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/prettier.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: prettify-code
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
prettier:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
with:
15+
ref: ${{ github.head_ref }}
16+
fetch-depth: 0
17+
18+
- name: Prettify code
19+
uses: creyD/prettier_action@v4.3
20+
with:
21+
prettier_options: --write **/*.{js,ts,md}
22+
only_changed: True
23+
commit_message: "style: format code with prettier"

0 commit comments

Comments
 (0)