fabiospampinato / bump

Bump updates the project's version, updates/creates the changelog, makes the bump commit, tags the bump commit and makes the release to GitHub. Opinionated but configurable.
MIT License
412 stars 13 forks source link

Improve git-bash and powershell support #23

Open ath0mas opened 4 years ago

ath0mas commented 4 years ago

It seems interactive use of bump does not work on Windows.

basic setup:

mkdir bump-foo && cd bump-foo
npm init private && git init && git add . && git commit -m "initial commit"

then trying bump fails:

                $ npx bump
(git-bash)
                Cannot read property 'get' of undefined
(powershell)
                ? Select an increment: (Use arrow keys)
                  major
                > minor
                  patch
                  premajor
                  preminor
                  prepatch
                  prerelease
                  custom
                ? Select an increment: minor

bump minor fails:

                $ npx bump minor
(git-bash)
                Bumping the version...
                Updating the changelog...
                Cannot read property 'get' of undefined
(powershell)
                ? No changes detected, bump anyway? (Use arrow keys)
                  No
                > Yes
                ? No changes detected, bump anyway? Yes
                Bumping the version...

bump minor --force runs fine 😃:

                $ npx bump minor --force
                Bumping the version...
                Updating the changelog...
                Making the commit...
                Tagging the commit...

environment:

fabiospampinato commented 1 year ago

@ath0mas could you try if v3 fixes this for you?

ath0mas commented 1 year ago

Not much time for now but sure I'll try v3 in 10 days or so 👍

ath0mas commented 1 year ago

Working fine with git-bash and powershell! 👍


To report about my tests:

fabiospampinato commented 7 months ago

@ath0mas to glarify, the Tagging the commit step is still not working properly for you on the latest version of this package, right?