-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use CLI --@scope:registry flag to override scoped registry defined in .npmrc #219
Comments
The config So if you have Please provide:
|
Closing as no response provided. Feel free to re-open if you still experience an issue and provide the info requested above. |
I think this should be reopened. The scoped registry should be picked up from I've just run into this, and this issue is clearly stated in the original report as well. |
We're running into this issue. Setting |
Hello, @jameshartig . Just uses But the scope registry in |
This stops a niche issue when using Gitlab registries, where setting the `.npmrc` to pull packages from the instance-wide registry while also setting the `package.json:publishConfig` to push to the project-local registry for a given `@scope` would pass the incorrect `--registry` flag to `npm publish` as well as associate the `NPM_TOKEN` with the wrong URL in the generated userconfig file. This DOES NOT resolve semantic-release#219. So `--registry` is still technically ignored for scoped packages. See [npm/cli#7043](npm/cli#7043) for more details on that. I made sure not to affect the priority of other resolutions to avoid any breaking changes. An additional test has been added for this specific case.
I'm using
semantic-release-npm
to publish a package on my Nexus registry. My package is scoped.I have the following config my
.npmrc
that defines a rule for installing my scoped package (get it from Nexus proxy repository):If I use npm cli to publish my package, I am able to override the
.npmrc
:--@scope:registry
arg (and like mentioned here):package.json
I am not able to achieve the same result with
semantic-release-npm
. The command that it uses to publish doesn't support the arg--@scope:registry
, only the--registry
arg is supported:Is there any way that I can configure
semantic-release
to use a scoped registry instead? Even when I try to configure thepublishConfig
attribute in mypackage.json
like thisit's not working because the
get-registry.js
is taking into account only theregistry
attribute without supporting the scoped registry config.Thanks.
The text was updated successfully, but these errors were encountered: