changesets/bot

Error when validating changeset config with root level package

Opened this issue · 2 comments

The error the GH bot posts is:

Some errors occurred when validating the changesets config:
The package or glob expression "my-package-name" specified in the `fixed` option does not match any package in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

The repo structure looks like

  • root ("my-package-name") with a package.json set to private
    • packages/javascript ("my-other-package") with a package.json set to public

PNPM workspaces is used in the repo where this issue occurs (https://github.com/livekit/protocol)
When running changesets CLI commands locally (e.g. changeset add) it accurately detects both packages in the repo. However the changeset bot seems to choke with this setup.

config:

{
  "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
  "changelog": [
    "@livekit/changesets-changelog-github",
    { "repo": "livekit/protocol" }
  ],
  "commit": false,
  "fixed": [["my-package-name", "my-other-package"]],
  "linked": [],
  "access": "public",
  "baseBranch": "main",
  "updateInternalDependencies": "patch",
  "ignore": [],
  "privatePackages": { "version": true, "tag": true }
}

any solution? I got same issue