Hex Package from Umbrella Subapp?

It is possible, check GitHub - straw-hat-team/beam-monorepo

Some things to pay attention to:

  1. Fix Doc links beam-monorepo/mix.exs at 6edd32c540ef649e6a48c6c1bde5d57ee4f4dfc8 · straw-hat-team/beam-monorepo · GitHub
  2. Publishing using GitHub Actions is a bit trickier beam-monorepo/cd.yml at 6edd32c540ef649e6a48c6c1bde5d57ee4f4dfc8 · straw-hat-team/beam-monorepo · GitHub learn more about it here: github-actions-workflows/elixir/umbrella-publish at master · straw-hat-team/github-actions-workflows · GitHub

What is missing?

During the test, if one package depends on another one, you will require to swap the dependency definition in your mix. exs file (I haven’t done it or tested it) because during test or development you will require the dependency to be in_umbrella while publishing it will be a regular dependency.

I hope it helps you, please share back the experience.

1 Like