2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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/
répondu il y a 5 ans
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.
répondu il y a 5 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
Anyone know if this is still relevant? The question and answers are several years old now. Does Amplify provide any native solution for this?