-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.01 KB
/
check-and-fix.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
36
37
38
39
40
41
42
43
name: Check and Fix Code
on:
pull_request:
branches: '**'
push:
branches: '**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
check-and-fix-code:
name: Check and Fix Code
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 21
cache: 'npm'
- name: Clean Install
run: npm ci
- name: Prettier Fix
run: npm run prettier:fix
- name: Lint Fix
run: npm run lint:fix
- name: Types Check
run: npm run types:check
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: Fix code'