CLI bump version number with yarn berry

Viewed 252

I recently upgraded yarn to yarn berry (v2) and I can't find any equivalent of yarn version --patch. The documentation about differences related to cli commands do not mention yarn version.

Is there a way to bump a package version number using yarn berry cli ?

1 Answers

Cf yarn version

Apply a new version to the current package.

Immediately bump the version to the next major :

yarn version major

So just replace major by patch in your case

Related