File tree 3 files changed +38
-4
lines changed
3 files changed +38
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : 👔 Format
2
+
3
+ on :
4
+ workflow_dispatch : null
5
+
6
+ permissions :
7
+ contents : write
8
+
9
+ jobs :
10
+ format :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+ - uses : pnpm/action-setup@v2
15
+ - uses : actions/setup-node@v4
16
+ - name : Install Packages
17
+ run : pnpm install
18
+ - name : Format
19
+ run : pnpm run eslint-fix
20
+ - name : Commit
21
+ run : |
22
+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
23
+ git config --local user.name "github-actions[bot]"
24
+
25
+ git add .
26
+ if [ -z "$(git status --porcelain)" ]; then
27
+ echo "no formatting changed"
28
+ exit 0
29
+ fi
30
+ pnpm update prettier
31
+ git add .
32
+ git commit -m "chore: format"
33
+ git push
34
+ echo "pushed formatting changes https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"
Original file line number Diff line number Diff line change 100
100
"mocha" : " ^10.2.0" ,
101
101
"mocha-chai-jest-snapshot" : " ^1.1.4" ,
102
102
"nyc" : " ^15.1.0" ,
103
- "prettier" : " ~3.2.0 " ,
103
+ "prettier" : " ~3.2.5 " ,
104
104
"prettier-plugin-pkg" : " ^0.18.0" ,
105
105
"prettier-plugin-svelte" : " ^3.1.2" ,
106
106
"rimraf" : " ^5.0.5" ,
Original file line number Diff line number Diff line change 14
14
"esModuleInterop" : true ,
15
15
"resolveJsonModule" : true ,
16
16
17
- "skipLibCheck" : true ,
17
+ "skipLibCheck" : true
18
18
},
19
19
"include" : [
20
20
" src/**/*.ts" ,
21
21
" tests/**/*.ts" ,
22
22
" tools/**/*.ts" ,
23
- " benchmark/**/*.ts" ,
24
- ],
23
+ " benchmark/**/*.ts"
24
+ ]
25
25
}
You can’t perform that action at this time.
0 commit comments