File tree Expand file tree Collapse file tree 5 files changed +39
-3
lines changed
Expand file tree Collapse file tree 5 files changed +39
-3
lines changed Original file line number Diff line number Diff line change 1+ name : Lint Commit Messages
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ jobs :
8+ commitlint :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+ with :
13+ fetch-depth : 0
14+ - uses : wagoid/commitlint-github-action@v5
Original file line number Diff line number Diff line change 11name : Lint tests
2- on : [push, pull_request]
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
37jobs :
48 build :
59 name : Lint tests (node latest)
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+ . " $( dirname -- " $0 " ) /_/husky.sh"
3+
4+ npx --no -- commitlint --edit
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+ . " $( dirname -- " $0 " ) /_/husky.sh"
3+
4+ npm run eslint
5+ npm run stylelint
Original file line number Diff line number Diff line change 2020 "build" : " webpack" ,
2121 "watch" : " webpack --watch" ,
2222 "stylelint" : " stylelint index.scss 'src/**/*.scss'" ,
23- "prepublishOnly" : " npm run test && rm ./dist/* && NODE_ENV=production npm run build"
23+ "prepublishOnly" : " npm run test && rm ./dist/* && NODE_ENV=production npm run build" ,
24+ "prepare" : " husky install"
2425 },
2526 "repository" : {
2627 "type" : " git" ,
3839 "is-plain-object" : " ^2.0.4"
3940 },
4041 "devDependencies" : {
41- "@osjs/dev-meta" : " ^2.1.0"
42+ "@commitlint/cli" : " ^17.1.2" ,
43+ "@commitlint/config-conventional" : " ^17.1.0" ,
44+ "@osjs/dev-meta" : " ^2.1.0" ,
45+ "husky" : " ^8.0.1"
4246 },
4347 "bugs" : {
4448 "url" : " https://github.com/os-js/osjs-dialogs/issues"
8589 "name" : " esdoc-publish-html-plugin"
8690 }
8791 ]
92+ },
93+ "commitlint" : {
94+ "extends" : [
95+ " @commitlint/config-conventional"
96+ ]
8897 }
8998}
You can’t perform that action at this time.
0 commit comments