mirror of
https://github.com/scratchfoundation/scratch-semantic-release-config.git
synced 2024-11-27 09:55:45 -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
|
||||
orbs:
|
||||
commitlint: conventional-changelog/commitlint@1.0.0
|
||||
node: circleci/node@5.0.2
|
||||
alias:
|
||||
- &defaults
|
||||
|
@ -13,17 +14,19 @@ 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: npx semantic-release
|
||||
workflows:
|
||||
version: 2
|
||||
commitlint:
|
||||
jobs:
|
||||
- commitlint/lint:
|
||||
target-branch: main
|
||||
branch-workflow:
|
||||
jobs:
|
||||
- branch-job:
|
||||
|
|
Loading…
Reference in a new issue