Skip to content

The release settings have a mistake

error: sdk-*, in the release group sdk, matches no package with a version
hint: Fix the name or glob, or take it out of the group's packages.

axle release and axle release publish check the release groups and tag formats under [release] before they change anything. The message says which of these it found:

  • A name or glob in a group’s packages matches no workspace package that has a version. Globs match whole names, so sdk-* doesn’t match @acme/sdk-web.
  • A name or glob isn’t a glob Axle can read, such as one with a [ that’s never closed.
  • Two groups have the same name, or a group has none.
  • A tag format has no {version}, so the tags of two versions would be the same.
  • Two sets of packages would get the same tags. A fixed group is tagged with the group’s name, so a group named ui and a package named ui outside it would both be tagged [email protected]. The same happens when a fixed group and a fixed repository both use v{version}.

Fix the setting the message names in the root axle.toml. For tags that would be the same, give the group a format of its own:

[[release.groups]]
name = "sdk"
packages = ["@acme/sdk-*"]
mode = "fixed"
tag = "sdk-v{version}"