Skip to content

No semver tags found #210

Open
Open
@shine1594

Description

@shine1594

I'm using tagPrefix and I'm getting the following error: "Error: No semver tags found"

conventionalGithubReleaser(
  {
    type: "oauth",
    url: 'https://api.github.com',
    token: process.env.GITHUB_TOKEN,
  },
  {
    preset: "angular",
    tagPrefix: `${app}@`,
  },
  null,
  { from, to },
  (err, responses) => {
    if(err) console.log(err);
    else console.log(responses);
  }
);

It seems that the tagPrefix option is not applied to 'git-semver-tags'.

I'm not sure exactly what side effects it will have, but shouldn't it be modified like this?

Q.nfcall(
  gitSemverTags,
  { tagPrefix: changelogOpts.tagPrefix || '' },
  function (err, tags) {
    if (err) userCb(err)
    else resolve(tags)
  }
)

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