-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (30 loc) · 985 Bytes
/
prettier.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
name: Code Formatter
on:
pull_request:
push:
branches:
- master
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install Dependencies
run: npm install
- name: Run Prettier
run: npm run prettier
- name: Automatically Commit Changed
uses: stefanzweifel/git-auto-commit-action@v4
with:
push_options: "--force"
commit_options: "--no-verify"
commit_message: "Prettified Code!"
commit_user_name: GitHub Actions
commit_user_email: [email protected]
commit_author: GitHub Actions <[email protected]>
skip_checkout: true