Dependency Issue in Multiple Workflows - MonoRepo

I would like to build a workflow with multiple condition and jobs

i have 100 repos to build and i have some dependencies between them in some cases one requires the other,

now we build each package standalone and it works,
but i do not know how to solve the dependency

i need the package a to be built before b
reaches the build docker phase

is there any way to solve dependencies between workflows?

The other lead i followed was to create
a work flow that runs all services in a workflow
and injected the modified params to the jobs,
adding a level of complexity
and only if changes were made then did the work.
but that created a workflow list of 400 jobs and i did not like it