A composite action which will configure NPM to use the NPM (npmjs.org) package registry.
This uses npm config set
commands to set the API key and scope registry for the specified scope. This updates the user profile's .npmrc
file with the API key needed to talk to the registry.
- name: npm-config-npmjs-org-registry
uses: ritterim/public-github-actions/actions/[email protected]
with:
npmjs_api_key: ${{ secrets.npmjs_api_key }}