Currently, I am utilizing the nx
tool to manage a mono repo specifically designed for typescript projects. The nx
comes equipped with a command called affected
, which allows me to focus solely on the changed project and any other projects that rely on it. This functionality is great for compiling purposes. However, I also need my CICD pipeline to operate in a similar manner.
My setup involves github and gitaction. I am interested in initiating the pipeline exclusively for the affected projects.
For instance, within my GitHub repository, there is a folder structure consisting of 3 projects and 1 library. Both proj1
and proj2
are dependent on the pdfgenerator
library. How can I ensure that only proj1
and proj2
trigger the CICD pipeline when modifications are made to the pdfgenerator
?
projects/proj1
projects/proj2
projects/proj3
libraries/pdfgenerator