mirror of
https://github.com/scratchfoundation/scratch-semantic-release-config.git
synced 2024-11-30 11:17:20 -05:00
ci: use commitlint orb
This commit is contained in:
parent
e254188550
commit
732e1e11eb
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
version: 2.1
|
version: 2.1
|
||||||
orbs:
|
orbs:
|
||||||
|
commitlint: conventional-changelog/commitlint@1.0.0
|
||||||
node: circleci/node@5.0.2
|
node: circleci/node@5.0.2
|
||||||
alias:
|
alias:
|
||||||
- &defaults
|
- &defaults
|
||||||
|
@ -13,17 +14,19 @@ jobs:
|
||||||
- checkout
|
- checkout
|
||||||
- node/install-packages
|
- node/install-packages
|
||||||
- run: npm test
|
- run: npm test
|
||||||
- run: npx commitlint --from=`git merge-base HEAD main`
|
|
||||||
main-job:
|
main-job:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- node/install-packages
|
- node/install-packages
|
||||||
- run: npm test
|
- run: npm test
|
||||||
- run: npx commitlint --from='HEAD~1'
|
|
||||||
- run: npx semantic-release
|
- run: npx semantic-release
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
commitlint:
|
||||||
|
jobs:
|
||||||
|
- commitlint/lint:
|
||||||
|
target-branch: main
|
||||||
branch-workflow:
|
branch-workflow:
|
||||||
jobs:
|
jobs:
|
||||||
- branch-job:
|
- branch-job:
|
||||||
|
|
Loading…
Reference in a new issue