Pushing to Nexus Group From Jenkins Pipeline

I have a project that runs in a Jenkins Pipeline that needs to both npm install from a hosted private Nexus 3 OSS Repo but also at the end of the routine npm publish.

How can I configure both the hosted and group repositories in the same .npmrc?