bumpp icon indicating copy to clipboard operation
bumpp copied to clipboard

fix: allow creating empty commits

Open auvred opened this issue 2 years ago • 0 comments

Description

After selecting as-is

> npx -y bumpp

? Current version 0.0.1 ›
            major 1.0.0
            minor 0.1.0
            patch 0.0.2
             next 0.0.2
        pre-patch 0.0.2-beta.0
        pre-minor 0.1.0-beta.0
        pre-major 1.0.0-beta.0
❯           as-is 0.0.1
           custom ...

It throws the following

> npx -y bumpp

✔ Current version 0.0.1 ›         as-is 0.0.1

   files package.json
  commit chore: release v0.0.1
     tag v0.0.1
    push yes

    from 0.0.1
      to 0.0.1

✔ Bump? … yes
ℹ package.json did not need to be updated
git commit --message "chore: release v0.0.1" exited with a status of 1.
 ELIFECYCLE  Command failed with exit code 1.

Because there is no changes (version in package.json hasn't changed). I guess bumpp should allow creating empty commits (the as-is option means just that, right?)

Linked Issues

Additional context

auvred avatar Dec 15 '23 12:12 auvred