Skip to content

yarn changeset publish is using npm info instead of yarn npm info #965

Closed

Description

@patrickconroy

Affected Packages

Private package

Problem

When trying to do a yarn changeset publish, it first gets info about your packages, but it does that via npm info. I'd like that to be yarn npm info. This is the only thing my repo requires to keep an .npmrc file around, everything else uses .yarnrc.yml.

Proposed solution

Allow configuration of info to use in .changeset/config.json

{
    "info": "yarn npm info"
}

Activity

  1. carterworks commented on Jun 5, 2026

    @carterworks

    With pnpm v11's move from specifying itself in packageManager to the corepack-compatible devEngines.packageManager, this issue has come up again.

    with

      "devEngines": {
        "packageManager": {
          "name": "pnpm",
          "version": "^11.4.0",
          "onFail": "download"
        }
      },

    pnpm changeset publish returns this error

    🦋  error Received an unknown error code: EBADDEVENGINES for npm info "$REPONAME"
    🦋  error The developer of this package has specified the following through devEngines
    🦋  error Invalid devEngines.packageManager
    🦋  error Invalid name "pnpm" does not match "npm" for "packageManager"
    🦋  error [object Object]
    

    Looking forward to #2047 being released

  2. Andarist commented on Jun 5, 2026

    @Andarist
    Member

    @carterworks we plan to release v3 by the end of the month. #2047 is unlikely to land right now - but I'm refactoring some of this code that calls out to the package manager CLIs as we speak, so I expect this to get solved by that.

  3. bluwy commented on Aug 3, 2026

    @bluwy
    Member

    fixed in #2097

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions