Automatically configure NPM_CONFIG_GLOBALCONFIG
with location of a binding of type npmrc
#396
Labels
enhancement
A new feature or request
Projects
Summary
It is not uncommon to want to include secrets in
npm
configuration. In some cases these secrets cannot be passed via environment variables as they are not stored securely on the platform that is executing the build. Instead, we tell developers that they can use a binding and then specifyNPM_CONFIG_GLOBALCONFIG
to point to that binding location.The buildpack could handle this wiring automatically. If a binding is of type
npmrc
, then it can assignNPM_CONFIG_GLOBALCONFIG
to point to that binding location automatically, thus saving developers from having to hardcode this into their build configurations.The text was updated successfully, but these errors were encountered: