chore: mark v1.18.0-rc1 (#11363)

This is the drive-by fix extracted from 9285596806
This commit is contained in:
Andrey Lushnikov 2022-01-12 13:11:09 -07:00 committed by GitHub
parent 853757930d
commit 36e13c67f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 33 additions and 29 deletions

26
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "playwright-internal",
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "playwright-internal",
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"license": "Apache-2.0",
"workspaces": [
"packages/*"
@ -9051,11 +9051,11 @@
},
"packages/html-reporter": {},
"packages/playwright": {
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
"playwright-core": "=1.18.0-next"
"playwright-core": "=1.18.0-rc1"
},
"bin": {
"playwright": "cli.js"
@ -9065,11 +9065,11 @@
}
},
"packages/playwright-chromium": {
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
"playwright-core": "=1.18.0-next"
"playwright-core": "=1.18.0-rc1"
},
"bin": {
"playwright": "cli.js"
@ -9079,7 +9079,7 @@
}
},
"packages/playwright-core": {
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"license": "Apache-2.0",
"dependencies": {
"commander": "^8.2.0",
@ -9115,11 +9115,11 @@
}
},
"packages/playwright-firefox": {
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
"playwright-core": "=1.18.0-next"
"playwright-core": "=1.18.0-rc1"
},
"bin": {
"playwright": "cli.js"
@ -9130,7 +9130,7 @@
},
"packages/playwright-test": {
"name": "@playwright/test",
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"license": "Apache-2.0",
"dependencies": {
"@babel/code-frame": "^7.14.5",
@ -9165,7 +9165,7 @@
"open": "^8.3.0",
"pirates": "^4.0.1",
"pixelmatch": "^5.2.1",
"playwright-core": "=1.18.0-next",
"playwright-core": "=1.18.0-rc1",
"pngjs": "^5.0.0",
"rimraf": "^3.0.2",
"source-map-support": "^0.4.18",
@ -9204,11 +9204,11 @@
}
},
"packages/playwright-webkit": {
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
"playwright-core": "=1.18.0-next"
"playwright-core": "=1.18.0-rc1"
},
"bin": {
"playwright": "cli.js"

View file

@ -1,7 +1,7 @@
{
"name": "playwright-internal",
"private": true,
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev",

View file

@ -1,6 +1,6 @@
{
"name": "playwright-chromium",
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"description": "A high-level API to automate Chromium",
"repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev",
@ -26,6 +26,6 @@
"install": "node install.js"
},
"dependencies": {
"playwright-core": "=1.18.0-next"
"playwright-core": "=1.18.0-rc1"
}
}

View file

@ -1,6 +1,6 @@
{
"name": "playwright-core",
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev",

View file

@ -1,6 +1,6 @@
{
"name": "playwright-firefox",
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"description": "A high-level API to automate Firefox",
"repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev",
@ -26,6 +26,6 @@
"install": "node install.js"
},
"dependencies": {
"playwright-core": "=1.18.0-next"
"playwright-core": "=1.18.0-rc1"
}
}

View file

@ -1,6 +1,6 @@
{
"name": "@playwright/test",
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev",
@ -59,7 +59,7 @@
"open": "^8.3.0",
"pirates": "^4.0.1",
"pixelmatch": "^5.2.1",
"playwright-core": "=1.18.0-next",
"playwright-core": "=1.18.0-rc1",
"pngjs": "^5.0.0",
"rimraf": "^3.0.2",
"source-map-support": "^0.4.18",

View file

@ -1,6 +1,6 @@
{
"name": "playwright-webkit",
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"description": "A high-level API to automate WebKit",
"repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev",
@ -25,6 +25,6 @@
"install": "node install.js"
},
"dependencies": {
"playwright-core": "=1.18.0-next"
"playwright-core": "=1.18.0-rc1"
}
}

View file

@ -1,6 +1,6 @@
{
"name": "playwright",
"version": "1.18.0-next",
"version": "1.18.0-rc1",
"description": "A high-level API to automate web browsers",
"repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev",
@ -26,6 +26,6 @@
"install": "node install.js"
},
"dependencies": {
"playwright-core": "=1.18.0-next"
"playwright-core": "=1.18.0-rc1"
}
}

View file

@ -20,10 +20,12 @@ const path = require('path');
const fs = require('fs');
const { execSync } = require('child_process');
const { packages } = require('./list_packages.js');
const { packages, packagesToPublish } = require('./list_packages.js');
(async () => {
const version = process.argv[2];
if (version.startsWith('v'))
throw new Error('Version must not start with "v"');
if (!version)
throw new Error('Please specify version! See --help for more information.');
if (process.argv[2] === '--help')
@ -46,11 +48,13 @@ const { packages } = require('./list_packages.js');
{
const packageLockPath = path.join(rootDir, 'package-lock.json');
const packageLock = JSON.parse(fs.readFileSync(packageLockPath, 'utf8'));
const publicPackages = new Set(packagesToPublish.map(package => path.basename(package)));
for (const package of packages.map(package => path.basename(package))) {
const playwrightCorePackages = packageLock['packages']['packages/' + package];
playwrightCorePackages.version = version;
if (publicPackages.has(package))
playwrightCorePackages.version = version;
if (playwrightCorePackages.dependencies && playwrightCorePackages.dependencies['playwright-core'])
packageLock['packages']['packages/playwright-test']['dependencies']['playwright-core'] = '=' + version;
packageLock['packages']['packages/' + package]['dependencies']['playwright-core'] = '=' + version;
}
fs.writeFileSync(packageLockPath, JSON.stringify(packageLock, null, 2) + '\n');
}