docs(contributing): update npm dist tags section (#5650)

The chrome-stable tags haven't been updated in a long time. This patch updates the documentation to reflect this reality.
This commit is contained in:
Mathias Bynens 2020-04-16 12:08:59 +02:00 committed by GitHub
parent 80348dc574
commit 37bae17038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,22 +271,16 @@ Releasing to npm consists of the following phases:
## Updating npm dist tags
For both `puppeteer` and `puppeteer-core` we maintain the following npm tags:
- `chrome-*` tags, e.g. `chrome-75` and so on. These tags match the Puppeteer version that corresponds to the `chrome-*` release.
- `chrome-stable` tag. This tag points to the Puppeteer version that works with the current Chrome stable release.
For both `puppeteer` and `puppeteer-core` we maintain `chrome-*` npm dist tags, e.g. `chrome-75` and so on. These tags match the Puppeteer version that corresponds to the `chrome-*` release.
These tags are updated on every Puppeteer release.
> **NOTE**: due to Chrome's rolling release, we take [omahaproxy's linux stable version](https://omahaproxy.appspot.com/) as *stable*.
Managing tags 101:
```bash
# list tags
# List tags
$ npm dist-tag ls puppeteer
# Removing a tag
$ npm dist-tag rm puppeteer-core chrome-stable
# Adding a tag
$ npm dist-tag add puppeteer-core@1.13.0 chrome-stable
# Add tags
$ npm dist-tag add puppeteer@3.0.0 chrome-81
$ npm dist-tag add puppeteer-core@3.0.0 chrome-81
```