2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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/
con risposta 5 anni fa
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.
con risposta 5 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata un anno fa
Anyone know if this is still relevant? The question and answers are several years old now. Does Amplify provide any native solution for this?