Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: release create-playwright over publish infra (#9683)

Max Schmitt60939a91b2c2
diff --git a/packages/create-playwright/package.json b/packages/create-playwright/package.json
index 0015bda8b7..45c145f3d1 100644
--- a/packages/create-playwright/package.json
+++ b/packages/create-playwright/package.json
@@ -1,10 +1,12 @@
{
"name": "create-playwright",
- "version": "0.1.7",
+ "version": "1.17.0-next",
"description": "Getting started with writing end-to-end tests with Playwright.",
"repository": "github:Microsoft/playwright",
"homepage": "https://playwright.dev",
- "author": "Microsoft",
+ "author": {
+ "name": "Microsoft Corporation"
+ },
"engines": {
"node": ">=12"
},
@@ -12,7 +14,7 @@
"bin": {
"create-playwright": "./index.js"
},
- "license": "MIT",
+ "license": "Apache-2.0",
"scripts": {
"test": "npx playwright test"
}
diff --git a/utils/prepare_packages.js b/utils/prepare_packages.js
index 7d90ad0f26..f35a562da1 100644
--- a/utils/prepare_packages.js
+++ b/utils/prepare_packages.js
@@ -58,7 +58,6 @@ const PACKAGES = {
'create-playwright': {
browsers: [],
files: [],
- ignore: true,
}
};
@@ -85,8 +84,6 @@ const dirtyFiles = [];
async function lintPackage(packageName) {
const packagePath = packageNameToPath.get(packageName);
const package = PACKAGES[packageName];
- if (package.ignore)
- return;
if (!package) {
console.log(`ERROR: unknown package ${packageName}`);
process.exit(1);
@@ -105,7 +102,7 @@ async function lintPackage(packageName) {
currentPackageJSON.homepage = pwInternalJSON.homepage;
currentPackageJSON.author = pwInternalJSON.author;
currentPackageJSON.license = pwInternalJSON.license;
- for (const name of Object.keys(currentPackageJSON.dependencies)) {
+ for (const name of Object.keys(currentPackageJSON.dependencies || {})) {
if (name in PACKAGES)
currentPackageJSON.dependencies[name] = `=${pwInternalJSON.version}`;
}
diff --git a/utils/publish_all_packages.sh b/utils/publish_all_packages.sh
index 1839e2b4e0..412c2dfb18 100755
--- a/utils/publish_all_packages.sh
+++ b/utils/publish_all_packages.sh
@@ -80,10 +80,6 @@ echo "==================== Publishing version ${VERSION} ================"
node ./utils/prepare_packages.js
node -e "console.log(require('./utils/list_packages').packages.join('\\n'))" | while read package
do
- if [[ ${package} == *"create-playwright" ]]; then
- echo "Skipping ${package}..."
- continue
- fi
npm publish ${package} --tag="${NPM_PUBLISH_TAG}"
done