Skip to content

feat: add configurable npm registry URL for publishers#2314

Open
jpoehnelt wants to merge 1 commit intoaxodotdev:mainfrom
jpoehnelt:main
Open

feat: add configurable npm registry URL for publishers#2314
jpoehnelt wants to merge 1 commit intoaxodotdev:mainfrom
jpoehnelt:main

Conversation

@jpoehnelt
Copy link
Copy Markdown

@jpoehnelt jpoehnelt commented Mar 3, 2026

Add a registry option to the npm publisher config so users can publish to custom npm registries instead of the hardcoded https://registry.npmjs.org.

Config example:

[dist.publishers.npm]
registry = "https://example.com"

When omitted, defaults to https://registry.npmjs.org (current behavior).

Changes:
- Added registry: Option<String> to NpmPublisherLayer/NpmPublisherConfig
- Added npm_registry_url: String to GithubCiInfo (auto-populates template)
- Updated publish_npm.yml.j2 to use template variable
- Updated snapshot tests

Fixes: #2316

    Add a `registry` option to the npm publisher config so users can
    publish to custom npm registries instead of the hardcoded
    https://registry.npmjs.org.

    Config example:
      [dist.publishers.npm]
      registry = "https://example.com"

    When omitted, defaults to https://registry.npmjs.org (current behavior).

    Changes:
    - Added `registry: Option<String>` to NpmPublisherLayer/NpmPublisherConfig
    - Added `npm_registry_url: String` to GithubCiInfo (auto-populates template)
    - Updated publish_npm.yml.j2 to use template variable
    - Updated snapshot tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[npm] configurable registry

1 participant