2回答
- 新しい順
- 投票が多い順
- コメントが多い順
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/
回答済み 5年前
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.
回答済み 5年前
関連するコンテンツ
- AWS公式更新しました 2年前
Anyone know if this is still relevant? The question and answers are several years old now. Does Amplify provide any native solution for this?