2 Answers
- Newest
- Most votes
- Most comments
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/
answered 5 years ago
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.
answered 5 years ago
Relevant content
- asked 9 months ago
- asked 6 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
Anyone know if this is still relevant? The question and answers are several years old now. Does Amplify provide any native solution for this?