scratch-vm/.circleci/config.yml
Christopher Willis-Ford c2c66a68d6 ci: add initial CircleCI config
This doesn't yet handle hotfixes or cron jobs
2022-06-07 11:44:06 -07:00

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