lfreleng-actions/📦 Node Create .npmrc

Create an .npmrc authenticated against a Nexus npm registry, then scrub it after the job

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 9, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: lfreleng-actions/node-create-npmrc-action@ddf719ee65057195bcb7c813ec54df9b7db25e1d # v0.1.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
nexus_hostNexus server hostname (default: nexus3.<repository_owner>.org)no""
nexus_repositoryNexus npm repository/locationnonpm.snapshot
registry_urlFull registry URL override ending with '/'; when set, nexus_host and nexus_repository are ignoredno""
scopenpm scope for the auth entry (for example '@onap')no""
nexus_userRegistry username (default: calling repository name)no""
nexus_passwordRegistry password/token; required unless load_credential is 'true'no""
load_credentialFetch the password from 1Password via credential-load-action ('true'/'false')nofalse
vault_mapping_jsonJSON mapping repository owner to 1Password vault (used when load_credential is 'true')no""
op_service_account_token1Password service account token (used when load_credential is 'true')no""
pathDirectory in which to write .npmrc (default: current working directory)no.
always_authAdd 'always-auth=true' to the generated .npmrc ('true'/'false')notrue
namedescription
npmrc_pathAbsolute path to the generated .npmrc file
registry_urlResolved npm registry URL