File tree Expand file tree Collapse file tree 3 files changed +38
-4
lines changed Expand file tree Collapse file tree 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 100100 "mocha" : " ^10.2.0" ,
101101 "mocha-chai-jest-snapshot" : " ^1.1.4" ,
102102 "nyc" : " ^15.1.0" ,
103- "prettier" : " ~3.2.0 " ,
103+ "prettier" : " ~3.2.5 " ,
104104 "prettier-plugin-pkg" : " ^0.18.0" ,
105105 "prettier-plugin-svelte" : " ^3.1.2" ,
106106 "rimraf" : " ^5.0.5" ,
Original file line number Diff line number Diff line change 1414 "esModuleInterop" : true ,
1515 "resolveJsonModule" : true ,
1616
17- "skipLibCheck" : true ,
17+ "skipLibCheck" : true
1818 },
1919 "include" : [
2020 " src/**/*.ts" ,
2121 " tests/**/*.ts" ,
2222 " tools/**/*.ts" ,
23- " benchmark/**/*.ts" ,
24- ],
23+ " benchmark/**/*.ts"
24+ ]
2525}
You can’t perform that action at this time.
0 commit comments