Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions lang/en/docs/cli/version.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ For example, starting with this package.json `package.json`:
}
```

When we run the `yarn version` command:
When we run the `yarn version --patch` command:

```sh
yarn version
yarn version --patch
```

```
Expand All @@ -46,9 +46,6 @@ We will get this updated `package.json`:
}
```

> **Note:** The new version you enter must be a valid
> [SemVer]({{url_base}}/docs/dependency-versions#toc-semantic-versioning)
> version.

#### Git tags <a class="toc" id="toc-git-tags" href="#toc-git-tags"></a>

Expand Down Expand Up @@ -146,6 +143,10 @@ version.

Creates a new version specified by `<version>`.

> **Note:** The `<version>` you enter must be a valid
> [SemVer]({{url_base}}/docs/dependency-versions#toc-semantic-versioning)
> version.

##### `yarn version --major` <a class="toc" id="toc-yarn-version-major" href="#toc-yarn-version-major"></a>

##### `yarn version --minor` <a class="toc" id="toc-yarn-version-minor" href="#toc-yarn-version-minor"></a>
Expand Down