-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (46 loc) · 1.05 KB
/
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
44
45
46
47
48
49
50
51
name: Fix errors and code formatting
on:
workflow_dispatch:
jobs:
fix:
name: Apply ESLint and Prettier
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Setup node
uses: actions/setup-node@v2
with:
node-version: 18
cache: npm
-
name: Install npm dependencies
run: npm install
-
name: Run ESLint
run: npm run lint:fix
-
name: Run ESLint for themes
run: npm run lint:themes:fix
-
name: Run Prettier
run: npm run prettier:fix
-
name: Run Prettier for themes
run: npm run prettier:themes:fix
-
run: |
git restore package-lock.json
-
name: Commit and pull request
uses: peter-evans/create-pull-request@v3
with:
title: "[GitHub Actions] ESLint and Prettier fixes"
commit-message: Fix errors and code formatting with ESLint and Prettier
add-paths: |
ts/*
delete-branch: true