mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
38 lines
803 B
YAML
38 lines
803 B
YAML
|
version: 2.1
|
||
|
orbs:
|
||
|
node: circleci/node@5
|
||
|
jobs:
|
||
|
branch-job:
|
||
|
executor: node/default # defaults to LTS
|
||
|
steps:
|
||
|
- checkout
|
||
|
- node/install-packages
|
||
|
- run: npm test
|
||
|
- run: npx commitlint --from=`git merge-base HEAD develop`
|
||
|
- run: npm run build
|
||
|
release-job:
|
||
|
executor: node/default # defaults to LTS
|
||
|
steps:
|
||
|
- checkout
|
||
|
- node/install-packages
|
||
|
- run: npm test
|
||
|
- run: npx commitlint --from='HEAD~1'
|
||
|
- run: npm run build
|
||
|
- run: npx semantic-release
|
||
|
workflows:
|
||
|
version: 2
|
||
|
branch-workflow:
|
||
|
jobs:
|
||
|
- branch-job:
|
||
|
filters:
|
||
|
branches:
|
||
|
ignore:
|
||
|
- develop
|
||
|
release-workflow:
|
||
|
jobs:
|
||
|
- release-job:
|
||
|
filters:
|
||
|
branches:
|
||
|
only:
|
||
|
- develop
|