I'm trying to utilize a private repo using AWS CodeArtifact. The instructions there mention executing a aws-cli
npm login command. This login command grabs a token from AWS and places it in the users .npmrc
.
I had tried to put this login function in a preinstall
script in the projects package.json
but the problem is that .npmrc
is only modified in this step and not reloaded when proceeding to the yarn install
task.
Is there any way to load this token into yarn
while keeping the login / install process seamless?