mbesson
mbesson

Reputation: 749

CLI bump version number with yarn berry

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 ?

Upvotes: 4

Views: 837

Answers (1)

Maël Nison
Maël Nison

Reputation: 7353

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

Upvotes: 1

Related Questions