mirror of
https://github.com/scratchfoundation/scratch-semantic-release-config.git
synced 2024-11-24 00:17:55 -05:00
39 lines
682 B
YAML
39 lines
682 B
YAML
|
version: 2.1
|
||
|
orbs:
|
||
|
node: circleci/node@5.0.2
|
||
|
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: semantic-release
|
||
|
workflows:
|
||
|
version: 2
|
||
|
branch-workflow:
|
||
|
jobs:
|
||
|
- branch-job:
|
||
|
filters:
|
||
|
branches:
|
||
|
ignore:
|
||
|
- main
|
||
|
main-workflow:
|
||
|
jobs:
|
||
|
- main-job:
|
||
|
filters:
|
||
|
branches:
|
||
|
only:
|
||
|
- main
|