mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -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
|