mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: release create-playwright over publish infra (#9683)
This commit is contained in:
parent
94d1fcf835
commit
60939a91b2
@ -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"
|
||||
}
|
||||
|
@ -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}`;
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user