I have a private library built and published to the private Github packages registry, I was expecting to be able to specify a npmrc with my scoped registry and auth like this;
//npm.pkg.github.com/:_authToken=${TOKEN_FOR_GITHUB}
but if I use .npmrc with a yarn.lock in the project it errors with,
‘Warning: a .npmrc file was found. yarn does not read .npmrc files, use .yarnrc instead if needed.’
So I tried making a .yarnrc file and that just got me a 401 response, and I also tried a .yarnrc.yml and that also got me a 401.
I cant see another question with this answered and my project depends on being able to install this package
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello @klewin23
In order to build from private repositories you need to have the right permissions.
To run through the Github auth process again you can visit https://cloud.digitalocean.com/apps/github/install
If you have multiple orgs associated with your Github account, be sure to choose the org that your private repo is in.
Then on the Repository Access screen, either choose “All Repositories” or specifically select the now-private repo you want to deploy.
Regards