mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
ci: use commitlint orb, disable commitlint during semantic-release
These changes came from what I learned while implementing semantic-release for scratch-paint.
This commit is contained in:
parent
c43ff12e8a
commit
8bac25cdc8
1 changed files with 9 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
version: 2.1
|
||||
orbs:
|
||||
commitlint: conventional-changelog/commitlint@1.0.0
|
||||
node: circleci/node@5
|
||||
aliases:
|
||||
- &release-branches
|
||||
|
@ -25,7 +26,6 @@ jobs:
|
|||
- checkout
|
||||
- node/install-packages
|
||||
- run: npm test
|
||||
- run: npx commitlint --from=`git merge-base HEAD develop`
|
||||
- run: npm run build
|
||||
- deploy_gh_pages
|
||||
build_and_release:
|
||||
|
@ -34,10 +34,12 @@ jobs:
|
|||
- checkout
|
||||
- node/install-packages
|
||||
- run: npm test
|
||||
- run: npx commitlint --from='HEAD~1'
|
||||
- run: npm run build
|
||||
- deploy_gh_pages
|
||||
- run: npx semantic-release
|
||||
- run:
|
||||
command: npx semantic-release
|
||||
environment:
|
||||
HUSKY: 0 # disable Husky hooks so commitlint doesn't block semantic-release
|
||||
update_i18n:
|
||||
executor: node/default # defaults to LTS
|
||||
steps:
|
||||
|
@ -46,6 +48,10 @@ jobs:
|
|||
- run: npm run i18n:src && npm run i18n:push
|
||||
workflows:
|
||||
version: 2
|
||||
commitlint:
|
||||
jobs:
|
||||
- commitlint/lint:
|
||||
target-branch: develop
|
||||
build_no_release:
|
||||
jobs:
|
||||
- build_no_release:
|
||||
|
|
Loading…
Reference in a new issue