File tree Expand file tree Collapse file tree 4 files changed +683
-1204
lines changed
Expand file tree Collapse file tree 4 files changed +683
-1204
lines changed Original file line number Diff line number Diff line change 1+ name : auto-fix
2+
3+ on :
4+ push :
5+ branches :
6+ - ' master'
7+
8+ jobs :
9+ auto-fix :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - uses : pnpm/action-setup@v2
15+ with :
16+ version : latest
17+
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : 20
21+ cache : pnpm
22+
23+ - run : pnpm install
24+
25+ # lint
26+ - name : Auto-fix
27+ run : npm run lint:fix
28+
29+ # commit
30+ - name : Commit
31+ uses : EndBug/add-and-commit@v9
32+ with :
33+ message : " ci(lint): auto-fix"
34+ default_author : github_actions
35+ env :
36+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 77 "prerelease" : " npm run build && npm run test" ,
88 "release" : " lerna publish --exact --force-publish --yes --sync-workspace-lock --no-push" ,
99 "release:next" : " npm run release -- --dist-tag next" ,
10- "test" : " vitest run"
10+ "test" : " vitest run" ,
11+ "lint" : " tsslint --projects **/tsconfig.json" ,
12+ "lint:fix" : " npm run lint -- --fix"
1113 },
1214 "devDependencies" : {
1315 "@lerna-lite/cli" : " latest" ,
1416 "@lerna-lite/publish" : " latest" ,
17+ "@tsslint/cli" : " latest" ,
18+ "@tsslint/config" : " latest" ,
1519 "typescript" : " latest" ,
1620 "vite" : " latest" ,
1721 "vitest" : " latest"
You can’t perform that action at this time.
0 commit comments