changesets / bot

https://github.com/apps/changeset-bot
56 stars 20 forks source link

Error when validating changeset config with root level package #82

Open lukasIO opened 6 months ago

lukasIO commented 6 months ago

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

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 }
}
okinawaa commented 5 months ago

any solution? I got same issue