Created
November 21, 2019 21:05
-
-
Save JulienKode/44c5e02ea0bac44d2b9a912fed76da13 to your computer and use it in GitHub Desktop.
CircleCi setup for monorepo: https://tech.julienkarst.com/how-to-setup-circleci-inside-a-monorepo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
workflows: | |
version: 2 | |
# The main workflow will trigger other workflow based on your changes | |
trigger: | |
when: << pipeline.parameters.trigger >> | |
jobs: | |
- trigger-workflows | |
- new_version: | |
requires: | |
- trigger-workflows | |
filters: | |
branches: | |
only: | |
- master | |
# Workflows defined for each package. | |
core: | |
when: << pipeline.parameters.core >> | |
jobs: | |
- lint: | |
package_name: core | |
components: | |
when: << pipeline.parameters.components >> | |
jobs: | |
- test: | |
package_name: components | |
- lint: | |
package_name: components |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment