-
-
Notifications
You must be signed in to change notification settings - Fork 1
27 lines (23 loc) · 793 Bytes
/
prettier.yml
File metadata and controls
27 lines (23 loc) · 793 Bytes
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
# Uses: https://github.com/marketplace/actions/prettier-action
name: Prettier
on: [pull_request, push]
jobs:
prettier:
name: Run Prettier
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Prettify code
uses: creyD/prettier_action@v2.2
with:
### Prettier Options ###
# --write prettifies directory/file given
# in this case, everything is prettified
# (if supported)
# --ignore-path is the path to the .prettierignore file
# (default is ./.prettierignore)
prettier_options: --write . --ignore-path ./.prettierignore
commit_message: 'Bot: Prettified code!'