mirror of
https://github.com/scratchfoundation/scratch-semantic-release-config.git
synced 2025-02-17 00:20:29 -05:00
ci: enable commitlint on CI
This commit is contained in:
parent
425f07c0e4
commit
ccc599d078
4 changed files with 1072 additions and 121 deletions
|
@ -13,12 +13,14 @@ jobs:
|
|||
- checkout
|
||||
- node/install-packages
|
||||
- run: npm test
|
||||
- run: npx commitlint --from=`git merge-base HEAD main`
|
||||
main-job:
|
||||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- node/install-packages
|
||||
- run: npm test
|
||||
- run: npx commitlint --from='HEAD~1'
|
||||
- run: semantic-release
|
||||
workflows:
|
||||
version: 2
|
||||
|
|
3
commitlint.config.js
Normal file
3
commitlint.config.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
module.exports = {
|
||||
extends: ['@commitlint/config-conventional']
|
||||
};
|
1186
package-lock.json
generated
1186
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -49,6 +49,8 @@
|
|||
"semantic-release": ">=15.13.31"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^17.0.0",
|
||||
"@commitlint/config-conventional": "^17.0.0",
|
||||
"commitizen": "^4.0.3",
|
||||
"cz-conventional-changelog": "^3.0.2",
|
||||
"semantic-release": "^15.13.31"
|
||||
|
|
Loading…
Reference in a new issue