File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1818 steps :
1919
2020 - uses : actions/checkout@v6
21+ with :
22+ fetch-depth : 0
2123
2224 - name : Setup Node.js
2325 uses : actions/setup-node@v6
3335 - name : Perfrom ESLint check
3436 run : npm run lint
3537
38+ - name : Validate current commit (last commit) with commitlint
39+ if : github.event_name == 'push'
40+ run : npm run lint:commit -- --last --verbose
41+
42+ - name : Validate PR commits with commitlint
43+ if : github.event_name == 'pull_request'
44+ run : npm run lint:commit -- --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
45+
3646 - name : Perfrom Licenses check
3747 run : npm run check-licenses
3848
Original file line number Diff line number Diff line change 1+ npm run lint:commit -- --edit "$1" # Lint currently edited commit message
Load diff This file was deleted.
Original file line number Diff line number Diff line change 3939 "scripts" : {
4040 "check-licenses" : " licensee --errors-only" ,
4141 "knip" : " knip --config knip.config.js" ,
42- "hooks:pre-push" : " npm run lint:commit" ,
4342 "lint" : " npm run lint --workspaces --if-present" ,
44- "lint:commit" : " commitlint -e " ,
43+ "lint:commit" : " commitlint" ,
4544 "prepare" : " node ./.husky/skip.js || husky" ,
4645 "check-engine" : " check-engine-light ." ,
4746 "test" : " npm run test --workspaces --if-present && npm run knip" ,
You can’t perform that action at this time.
0 commit comments