-
-
Notifications
You must be signed in to change notification settings - Fork 28
56 lines (45 loc) · 1.32 KB
/
fix-lint-errors.yml
File metadata and controls
56 lines (45 loc) · 1.32 KB
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
52
53
54
55
name: Fix Lint Errors
on:
workflow_dispatch:
jobs:
fix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
token: ${{ secrets.GH_PAT }}
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20.x'
- name: Check npm cache directory
id: npm-cache
run: |
echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT
- name: Check npm cache
uses: actions/cache/restore@v4
with:
path: |
${{ steps.npm-cache.outputs.dir }}
key: npm-20.x-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-20.x-
npm-
- name: Install dependencies
run: npm ci
- name: Fix lint errors
run: npm run lint -- --fix
- name: Build
run: npm run build
- name: Generate documentation of commands
run: |
cp util/config-for-test.json config.json
npm run generatecommandlist
- name: Commit & Push
run: |
git fetch
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add .
git commit -m "Chore: fix lint issues" -m "* Automated changes"
git push