2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
0
In this case, you may have to embed the access token into your clone command.
https://dotlayer.com/how-to-use-a-private-github-repo-as-a-dependency-with-yarn-npm/
respondido há 5 anos
0
Based on this https://stackoverflow.com/questions/23210437/npm-install-private-github-repositories-by-dependency-in-package-json/23210615. I build this alternative to use private repos on package.json.
You can add the follow command on your amplify console build settings:
...
preBuild:
commands:
- git config --global url."https://${GITHUB_PRIVATE_TOKEN}@github.com".insteadOf ssh://git@github.com
- yarn
build:
...
note: you need to add the GITHUB_PRIVATE_TOKEN environment variables on your Amplify Console.
respondido há 5 anos
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 anos
Anyone know if this is still relevant? The question and answers are several years old now. Does Amplify provide any native solution for this?