Skip to content

Version lookup ignores configured npm registry #11387

@bbartels

Description

@bbartels

Description

The script in packages/script/src/index.ts hardcodes https://registry.npmjs.org when fetching the latest published version to calculate the next version number.

This ignores the user's npm configuration, making it impossible to build in airgapped environments or when using an internal npm mirror.

Expected behavior

Script should respect the user's configured npm registry via npm_config_registry env var (standard npm/bun behavior).

Current behavior

Always fetches from https://registry.npmjs.org regardless of npm configuration.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions