Create Deploy-Token (Access-Token) for particular private repo and use it in dependency as following:
{
"dependencies": {
"package-name": "git+https://<username>:<access_token>@github.com/username/repository#{branch|tag}"
}
}
For Example:
{
"dependencies": {
"demo-lib": "git+https://<username>:<access_token>@gitlab.com/username/demo-lib#1.2.4",
"demo-util": "git+https://<username>:<access_token>@gitlab.com/username/demo-util#prod",
"demo-dep": "git+https://<access_token>:[email protected]/username/demo-dep#master"
}
}
Or you can add SSH key of of git client and use following:
{
"dependencies": {
"package-name": "git+ssh://[email protected]:username/repository.git#{branch|tag}"
}
}
Hey, I am facing this type of issue #9 [5/6] RUN git ls-remote ***github.com/tech21ha/datalayer-node-pkg#prod
#9 1.550 fatal: repository 'https://github.com/tech21ha/datalayer-node-pkg#prod/' not found
#9 ERROR: process "/bin/sh -c git ls-remote ***github.com/tech21ha/datalayer-node-pkg#prod" did not complete successfully: exit code: 128