semantic-release: Semantic Release 20 can't detect git installed in Github Action Windows

Current behavior

Crashes complaining can’t find git binary.

Relating to this dependabot PR: https://github.com/Belphemur/SoundSwitch/pull/1085

Expected behavior

Find the git binary as it was the case before in the 19.0.5 version.

semantic-release version

20.0.0

CI environment

GitHub Action

Plugins used

git

semantic-release configuration

https://github.com/Belphemur/SoundSwitch/blob/dev/package.json

CI logs

Run npx semantic-release -d [semantic-release]: Git version 2.7.1 is required. No git binary found. TypeError: Invalid Version: undefined at new SemVer (D:\a\SoundSwitch\SoundSwitch\node_modules\semver\classes\semver.js:19:13) at compare (D:\a\SoundSwitch\SoundSwitch\node_modules\semver\functions\compare.js:3:3) at lt (D:\a\SoundSwitch\SoundSwitch\node_modules\semver\functions\lt.js:2:29) at file:///D:/a/SoundSwitch/SoundSwitch/node_modules/semantic-release/bin/semantic-release.js:29:9 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Error: Process completed with exit code 1.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 20 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Same on my side. Thanks team !

Confirmed this works 👍 Thank you all!