chore: fix version number (#6803)

This commit is contained in:
Mathias Bynens 2021-02-02 13:32:13 +01:00 committed by GitHub
parent 20526b57b8
commit 03db2cbf2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -7,7 +7,7 @@
- Troubleshooting: [troubleshooting.md](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md) - Troubleshooting: [troubleshooting.md](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md)
<!-- GEN:versions-per-release --> <!-- GEN:versions-per-release -->
- Releases per Chromium version: - Releases per Chromium version:
* Chromium 89.0.4389.0 - [Puppeteer 6.0.0](https://github.com/puppeteer/puppeteer/blob/6.0.0/docs/api.md) * Chromium 89.0.4389.0 - [Puppeteer v6.0.0](https://github.com/puppeteer/puppeteer/blob/v6.0.0/docs/api.md)
* Chromium 88.0.4298.0 - [Puppeteer v5.5.0](https://github.com/puppeteer/puppeteer/blob/v5.5.0/docs/api.md) * Chromium 88.0.4298.0 - [Puppeteer v5.5.0](https://github.com/puppeteer/puppeteer/blob/v5.5.0/docs/api.md)
* Chromium 87.0.4272.0 - [Puppeteer v5.4.0](https://github.com/puppeteer/puppeteer/blob/v5.4.0/docs/api.md) * Chromium 87.0.4272.0 - [Puppeteer v5.4.0](https://github.com/puppeteer/puppeteer/blob/v5.4.0/docs/api.md)
* Chromium 86.0.4240.0 - [Puppeteer v5.3.0](https://github.com/puppeteer/puppeteer/blob/v5.3.0/docs/api.md) * Chromium 86.0.4240.0 - [Puppeteer v5.3.0](https://github.com/puppeteer/puppeteer/blob/v5.3.0/docs/api.md)

View File

@ -41,7 +41,9 @@ async function run() {
const versions = await Source.readFile( const versions = await Source.readFile(
path.join(PROJECT_DIR, 'versions.js') path.join(PROJECT_DIR, 'versions.js')
); );
versions.setText(versions.text().replace(`, 'NEXT'],`, `, '${VERSION}'],`)); versions.setText(
versions.text().replace(`, 'NEXT'],`, `, 'v${VERSION}'],`)
);
await versions.save(); await versions.save();
} }

View File

@ -17,7 +17,7 @@
const versionsPerRelease = new Map([ const versionsPerRelease = new Map([
// This is a mapping from Chromium version => Puppeteer version. // This is a mapping from Chromium version => Puppeteer version.
// In Chromium roll patches, use 'NEXT' for the Puppeteer version. // In Chromium roll patches, use 'NEXT' for the Puppeteer version.
['89.0.4389.0', '6.0.0'], ['89.0.4389.0', 'v6.0.0'],
['88.0.4298.0', 'v5.5.0'], ['88.0.4298.0', 'v5.5.0'],
['87.0.4272.0', 'v5.4.0'], ['87.0.4272.0', 'v5.4.0'],
['86.0.4240.0', 'v5.3.0'], ['86.0.4240.0', 'v5.3.0'],