I've tried to install it locally yarn add -D standard-version
package and use it for release versioning
and changeLog.md
generation, But when I run yarn release
which is standard-version
, it will generate changeLog and does the version updating, but there are two problems:
error: pathspec 'CHANGELOG.md' did not match any file(s) known to git
λ yarn release
yarn run v1.17.3
$ standard-version
√ bumping version in package.json from 0.6.3 to 0.6.4
√ outputting changes to CHANGELOG.md
√ committing package.json and CHANGELOG.md
error: pathspec 'CHANGELOG.md' did not match any file(s) known to git
Command failed: git commit CHANGELOG.md package.json -m chore(release): 0.6.4
error: pathspec 'CHANGELOG.md' did not match any file(s) known to git
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- repeating previous release commit messages in the new release changelog
What is the problem and how should I fix this?