We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b58c9e commit c4ebb82Copy full SHA for c4ebb82
.github/workflows/prettier.yml
@@ -0,0 +1,25 @@
1
+name: Prettier
2
+
3
+# This action works with pull requests and pushes
4
+on:
5
+ pull_request:
6
+ push:
7
+ branches:
8
+ - main
9
10
+jobs:
11
+ prettier:
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v2
17
+ with:
18
+ # Make sure the actual branch is checked out when running on pull requests
19
+ ref: ${{ github.head_ref }}
20
21
+ - name: Prettify code
22
+ uses: creyD/prettier_action@v4.2
23
24
+ # This part is also where you can pass other options, for example:
25
+ prettier_options: --write .
0 commit comments