lfreleng-actions/📦 Node Create .npmrc
Create an .npmrc authenticated against a Nexus npm registry, then scrub it after the job
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 9, 2026
- License
- None
Pinned Snippet
uses: lfreleng-actions/node-create-npmrc-action@ddf719ee65057195bcb7c813ec54df9b7db25e1d # v0.1.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| nexus_host | Nexus server hostname (default: nexus3.<repository_owner>.org) | no | "" |
| nexus_repository | Nexus npm repository/location | no | npm.snapshot |
| registry_url | Full registry URL override ending with '/'; when set, nexus_host and nexus_repository are ignored | no | "" |
| scope | npm scope for the auth entry (for example '@onap') | no | "" |
| nexus_user | Registry username (default: calling repository name) | no | "" |
| nexus_password | Registry password/token; required unless load_credential is 'true' | no | "" |
| load_credential | Fetch the password from 1Password via credential-load-action ('true'/'false') | no | false |
| vault_mapping_json | JSON mapping repository owner to 1Password vault (used when load_credential is 'true') | no | "" |
| op_service_account_token | 1Password service account token (used when load_credential is 'true') | no | "" |
| path | Directory in which to write .npmrc (default: current working directory) | no | . |
| always_auth | Add 'always-auth=true' to the generated .npmrc ('true'/'false') | no | true |
Outputs
| name | description |
|---|---|
| npmrc_path | Absolute path to the generated .npmrc file |
| registry_url | Resolved npm registry URL |