mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 06:23:37 -05:00
c2c66a68d6
This doesn't yet handle hotfixes or cron jobs
37 lines
803 B
YAML
37 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
|