<!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 ---> <!--- Before opening up a new bug report, please make sure to check for similar existing issues --> **Description:** When `scope` is specified and a matching scoped registry exists in .npmrc the registry entry is duplicated. **Action version:** 3.4.1 **Platform:** - [x] Ubuntu - [ ] macOS - [ ] Windows **Runner type:** - [ ] Hosted - [x] Self-hosted **Tools version:** Node 14 NPM 6 **Repro steps:** Add an .npmrc with `@scope:registry=https://example.com/` and an action with `registry: https://example2.com` and `scope: scope`. **Expected behavior:** The scoped registry should be overwritten by the action config. **Actual behavior:** The registry is duplicated and the first entry takes precedence. Related issues: https://github.com/actions/setup-node/issues/118, https://github.com/actions/setup-node/issues/87 PR: https://github.com/actions/setup-node/pull/616