The Fontawesome Pro instructions describe placing a secret key in a .npmrc
file but it is unclear how this file should be managed. Specifically, should this file be ignored by Git?
Should .npmrc be ignored?
7.8k Views Asked by orome At
2
There are 2 best solutions below
0

My answer would say it's best to ignore it and not push to repo. as if you have multiple Engineers contributing changes to a generated package for push to the registry each developer will have to have their own .npmrc file and it' unlikely that you'd ever want that pushed to the repo as each attempt would overwrite/conflict.
I could imagine a scenario where you'd like to automate by using a single credential for all devs and thus one global .npmrc file but that is an obvious security faux pas in my view.
The Fontawesome Pro instructions are correct as an example of the general approach to managing sensitive information in a
.nmprc
file :