scratch-semantic-release-co.../.circleci/config.yml

44 lines
819 B
YAML
Raw Normal View History

2022-05-20 17:17:27 -04:00
version: 2.1
orbs:
2022-08-26 13:34:46 -04:00
commitlint: conventional-changelog/commitlint@1.0.0
2022-09-28 18:05:55 -04:00
node: circleci/node@5.0.3
2022-05-20 17:17:27 -04:00
alias:
- &defaults
docker:
- image: cimg/node:lts
executor: node/default
jobs:
branch-job:
<<: *defaults
steps:
- checkout
- node/install-packages
- run: npm test
main-job:
<<: *defaults
steps:
- checkout
- node/install-packages
- run: npm test
- run: npx semantic-release
2022-05-20 17:17:27 -04:00
workflows:
version: 2
2022-08-26 13:34:46 -04:00
commitlint:
jobs:
- commitlint/lint:
target-branch: main
2022-05-20 17:17:27 -04:00
branch-workflow:
jobs:
- branch-job:
filters:
branches:
ignore:
- main
main-workflow:
jobs:
- main-job:
filters:
branches:
only:
- main