Reference repository

Hey guys :slight_smile:

I am currently working on an API that consists of multiple micro services (each micro service has its own repository on GitHub and locally on my machine). Some microservices require the same code parts (e.g. json-web-token generation logic). I would now like to extract the shared code logic into an own repository and then just reference it from the microservices repositories.

The repository should contain something like a copy of the files from the shared-code repository. However, the code should update on all microservices that use the repository, whenever I push a new commit.

I read about submodules but I am not sure if it is possible to pull new updates of the submodule from within the microservices?

In other words, I would like to create my own npm-package without deploying it to npm if that makes any sense? I just want some code to have its own lil repo from which my microservices can pull it (& possibly its new updates).

I would be extremely glad if anyone could help me out on this one.

Thanks in advance guys :slight_smile: