Skip to content

PNPM - devEngines #696

Description

@philibea

When setting this config inside the package.json

 "devEngines": {
    "packageManager": {
      "name": "pnpm",
      "version": "11.11.0",
      "onFail": "error"
    },
    "runtime": {
      "name": "node",
      "version": "24.18.x || 26.x",
      "onFail": "error"
    }
  },

and using the changesets/action (v1.9.0 )

 - name: Create Release Pull Request or Publish to npm
        id: changesets
        uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
        with:
          commit: 'chore: release'
          title: 'chore: release'
          publish: pnpm release
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          NPM_TOKEN: ${{ env.NPM_TOKEN }}
          PNPM_CONFIG_PROVENANCE: true

We have an issue with changeset using npm to get info of ours packages.

Log:

Tasks:    9 successful, 9 total
Cached:    0 cached, 9 total
  Time:    14.686s 

🦋  info npm info @ultraviolet/animations
🦋  info npm info @ultraviolet/fonts
🦋  info npm info @ultraviolet/form
🦋  info npm info @ultraviolet/icons
🦋  info npm info @ultraviolet/illustrations
🦋  info npm info @ultraviolet/nextjs
🦋  info npm info @ultraviolet/themes
🦋  info npm info @ultraviolet/ui
🦋  info npm info @ultraviolet/utils
🦋  error Received an unknown error code: EBADDEVENGINES for npm info "@ultraviolet/icons"
🦋  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]
[ELIFECYCLE] Command failed with exit code 1.
Error: Publish command exited with code 1

Is there a way to set pnpm as default package manager inside the github action ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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