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
|
2023-01-20 22:05:50 -05:00
|
|
|
node: circleci/node@5.1.0
|
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
|
2022-05-20 19:46:43 -04:00
|
|
|
- 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:
|
2023-04-14 15:14:57 -04:00
|
|
|
context:
|
|
|
|
- scratch-npm-creds
|
2022-05-20 17:17:27 -04:00
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- main
|