I will start with a description of a project and then ask a question.
The Context:
- there is a monorepo ( managed by pnpm )
- there are three projects in the monorepo: libCommon, serverA, serverB
- the libCommon is a dependency of the serverA and serverB
What I try to achieve:
- whenever code for serverA gets pushed to gitlab, I need a job that builds and deploys the serverA gets executed. No other job, but just this one.
- whenever code for serverB gets pushed to gitlab, I need a job that builds and deploys the serverA gets executed. No other job, but just this one.
- whenever code for libCommon gets pushed, I need both the serverA job, and the serverB job get executed.
I am totally new to this and have no idea where to start looking for answers.