antfu-collective / bumpp

Interactive CLI that bumps your version numbers and more
https://jstools.dev/version-bump-prompt/
MIT License
597 stars 43 forks source link

fix: allow creating empty commits #23

Closed auvred closed 9 months ago

auvred commented 10 months ago

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

-