From 8a89bd7ad14b7f5c75f063132ba204a037e785c0 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Tue, 9 Jun 2026 13:14:41 +0530 Subject: [PATCH 1/9] Feat: Update Publish NPM Packages YML file with release-tools package --- .github/workflows/publish-npm-packages.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-npm-packages.yml b/.github/workflows/publish-npm-packages.yml index 36a303cad21cbc..db19393fd2f671 100644 --- a/.github/workflows/publish-npm-packages.yml +++ b/.github/workflows/publish-npm-packages.yml @@ -96,7 +96,7 @@ jobs: run: | cd cli npm ci - npm exec --no release-cli -- npm-next --ci --repository-path ../publish + npm exec --workspace @wordpress/release-tools -- release-cli -- npm-next --ci --repository-path ../publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -105,7 +105,7 @@ jobs: run: | cd cli npm ci - npm exec --no release-cli -- npm-latest --semver minor --ci --repository-path ../publish + npm exec --workspace @wordpress/release-tools -- release-cli -- npm-latest --semver minor --ci --repository-path ../publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -114,7 +114,7 @@ jobs: run: | cd cli npm ci - npm exec --no release-cli -- npm-bugfix --ci --repository-path ../publish + npm exec --workspace @okwordpress/release-tools -- release-cli -- npm-bugfix --ci --repository-path ../publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From dfcbf153d6d6e19b2f1a27f3b974ff2d2f861446 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Tue, 9 Jun 2026 13:15:08 +0530 Subject: [PATCH 2/9] Feat: Update Static Checks YML file with validation-tools package --- .github/workflows/static-checks.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml index 0c44e47172e0a4..c79e9792c448d9 100644 --- a/.github/workflows/static-checks.yml +++ b/.github/workflows/static-checks.yml @@ -77,10 +77,10 @@ jobs: run: npm run lint:deps - name: Lint package-lock.json file - run: npm run lint:lockfile + run: npm run --workspace @wordpress/validation-tools validate-package-lock -- - name: Validate TypeScript config - run: npm run lint:tsconfig + run: npm run --workspace @wordpress/validation-tools validate-tsconfig -- - name: Lint JavaScript if: ${{ matrix.annotations }} From fb06aec9e73f34431ae587aeb91fd71d361ccc45 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Wed, 10 Jun 2026 15:15:07 +0530 Subject: [PATCH 3/9] fix: Feedbacks --- package.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 803d9133080a09..c844e25f130c21 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,6 @@ "@types/react-dom": "^18.3.1", "@typescript/native-preview": "^7.0.0-dev.20260423.1", "@wordpress/eslint-tools": "file:./tools/eslint", - "@wordpress/release-tools": "file:./tools/release", "@wordpress/vips": "file:./packages/vips", "concurrently": "^3.5.0", "cross-env": "^7.0.3", @@ -92,7 +91,7 @@ }, "scripts": { "build": "npm run --workspace @wordpress/build-scripts build:all --", - "build:profile-types": "rimraf ./ts-traces && npm run clean:package-types && npm run check-installed-deps --workspace @wordpress/validation-tools --silent && ( tsgo --build --extendedDiagnostics --generateTrace ./ts-traces || ( echo 'tsc failed.'; exit 1 ) ) && npm run --workspace @wordpress/build-scripts --silent check-type-declarations && npx --yes @typescript/analyze-trace ts-traces > ts-traces/analysis.txt && node -p \"'\\n\\nDone! Build traces saved to ts-traces/ directory.\\nTrace analysis saved to ts-traces/analysis.txt.'\"", + "build:profile-types": "rimraf ./ts-traces && npm run clean:package-types && npm run check-installed-deps --workspace tools/validation --silent && ( tsgo --build --extendedDiagnostics --generateTrace ./ts-traces || ( echo 'tsc failed.'; exit 1 ) ) && npm run --workspace @wordpress/build-scripts --silent check-type-declarations && npx --yes @typescript/analyze-trace ts-traces > ts-traces/analysis.txt && node -p \"'\\n\\nDone! Build traces saved to ts-traces/ directory.\\nTrace analysis saved to ts-traces/analysis.txt.'\"", "build:plugin-zip": "bash ./bin/build-plugin-zip.sh", "clean:package-types": "tsgo --build --clean && rimraf --glob \"./packages/*/build-types\"", "clean:packages": "rimraf --glob \"./packages/*/{build,build-module,build-wp,build-style}\" \"./build\"", @@ -123,18 +122,19 @@ "lint:js": "node ./tools/eslint/lint-js.cjs --concurrency=auto", "lint:js:fix": "npm run lint:js -- --fix", "lint:js:prune-suppressions": "npm run lint:js -- --prune-suppressions", - "lint:lockfile": "npm run --workspace @wordpress/validation-tools validate-package-lock --", - "lint:tsconfig": "npm run --workspace @wordpress/validation-tools validate-tsconfig --", + "lint:lockfile": "npm run --workspace tools/validation validate-package-lock --", + "lint:tsconfig": "npm run --workspace tools/validation validate-tsconfig --", "lint:md:docs": "wp-scripts lint-md-docs", "prelint:php": "npm run other:update-packages:php", "lint:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script lint", "lint:pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'", - "other:changelog": "npm exec --no release-cli -- changelog", - "other:check-licenses": "concurrently \"npm run --workspace @wordpress/validation-tools check-licenses --\" \"wp-scripts check-licenses --dev\"", + "native": "npm run --prefix packages/react-native-editor", + "other:changelog": "npm exec --workspace tools/release --no release-cli -- changelog", + "other:check-licenses": "concurrently \"npm run --workspace tools/validation check-licenses --\" \"wp-scripts check-licenses --dev\"", "preother:check-local-changes": "npm run docs:build && npm run --workspace @wordpress/theme build", - "other:check-local-changes": "npm run --workspace @wordpress/validation-tools check-local-changes --", - "other:cherry-pick": "npm run --workspace @wordpress/release-tools cherry-pick --", - "other:generate-php-sync-issue": "npm run --workspace @wordpress/release-tools generate-php-sync-issue --", + "other:check-local-changes": "npm run --workspace tools/validation check-local-changes --", + "other:cherry-pick": "npm run --workspace tools/release cherry-pick --", + "other:generate-php-sync-issue": "npm run --workspace tools/release generate-php-sync-issue --", "other:update-packages:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer update --no-interaction", "postinstall": "patch-package", "prepare": "husky install", @@ -149,7 +149,7 @@ "storybook:e2e:dev": "concurrently \"npm run dev\" \"wait-on .dev-ready && npm run --workspace @wordpress/storybook-playwright storybook:dev\"", "storybook:e2e:build": "npm run --workspace @wordpress/storybook-playwright storybook:build", "test": "npm-run-all lint test:unit", - "test:create-block": "npm run --workspace @wordpress/validation-tools test-create-block --", + "test:create-block": "npm run --workspace tools/validation test-create-block --", "test:e2e": "npm exec --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-playwright --config playwright.config.ts", "test:e2e:debug": "npm exec --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-playwright --config playwright.config.ts --ui", "test:e2e:playwright": "npm run test:e2e", From 0d1a6b7b4664736b3079a4dceaf358e94079fe79 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Wed, 10 Jun 2026 15:21:46 +0530 Subject: [PATCH 4/9] fix: Update package-lock file --- package-lock.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 5de038076adb86..b73cb1d7ba3322 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,6 @@ "@types/react-dom": "^18.3.1", "@typescript/native-preview": "^7.0.0-dev.20260423.1", "@wordpress/eslint-tools": "file:./tools/eslint", - "@wordpress/release-tools": "file:./tools/release", "@wordpress/vips": "file:./packages/vips", "concurrently": "^3.5.0", "cross-env": "^7.0.3", From 85ff8cec2df573cad79176307bb2f18c59c53b63 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Thu, 11 Jun 2026 18:12:35 +0530 Subject: [PATCH 5/9] fix: Reverted unwanted package.json changes --- package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index c844e25f130c21..ea494374e2fe00 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ }, "scripts": { "build": "npm run --workspace @wordpress/build-scripts build:all --", - "build:profile-types": "rimraf ./ts-traces && npm run clean:package-types && npm run check-installed-deps --workspace tools/validation --silent && ( tsgo --build --extendedDiagnostics --generateTrace ./ts-traces || ( echo 'tsc failed.'; exit 1 ) ) && npm run --workspace @wordpress/build-scripts --silent check-type-declarations && npx --yes @typescript/analyze-trace ts-traces > ts-traces/analysis.txt && node -p \"'\\n\\nDone! Build traces saved to ts-traces/ directory.\\nTrace analysis saved to ts-traces/analysis.txt.'\"", + "build:profile-types": "rimraf ./ts-traces && npm run clean:package-types && npm run check-installed-deps --workspace @wordpress/validation-tools --silent && ( tsgo --build --extendedDiagnostics --generateTrace ./ts-traces || ( echo 'tsc failed.'; exit 1 ) ) && npm run --workspace @wordpress/build-scripts --silent check-type-declarations && npx --yes @typescript/analyze-trace ts-traces > ts-traces/analysis.txt && node -p \"'\\n\\nDone! Build traces saved to ts-traces/ directory.\\nTrace analysis saved to ts-traces/analysis.txt.'\"", "build:plugin-zip": "bash ./bin/build-plugin-zip.sh", "clean:package-types": "tsgo --build --clean && rimraf --glob \"./packages/*/build-types\"", "clean:packages": "rimraf --glob \"./packages/*/{build,build-module,build-wp,build-style}\" \"./build\"", @@ -122,19 +122,19 @@ "lint:js": "node ./tools/eslint/lint-js.cjs --concurrency=auto", "lint:js:fix": "npm run lint:js -- --fix", "lint:js:prune-suppressions": "npm run lint:js -- --prune-suppressions", - "lint:lockfile": "npm run --workspace tools/validation validate-package-lock --", - "lint:tsconfig": "npm run --workspace tools/validation validate-tsconfig --", + "lint:lockfile": "npm run --workspace @wordpress/validation-tools validate-package-lock --", + "lint:tsconfig": "npm run --workspace @wordpress/validation-tools validate-tsconfig --", "lint:md:docs": "wp-scripts lint-md-docs", "prelint:php": "npm run other:update-packages:php", "lint:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script lint", "lint:pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'", "native": "npm run --prefix packages/react-native-editor", "other:changelog": "npm exec --workspace tools/release --no release-cli -- changelog", - "other:check-licenses": "concurrently \"npm run --workspace tools/validation check-licenses --\" \"wp-scripts check-licenses --dev\"", + "other:check-licenses": "concurrently \"npm run --workspace @wordpress/validation-tools check-licenses --\" \"wp-scripts check-licenses --dev\"", "preother:check-local-changes": "npm run docs:build && npm run --workspace @wordpress/theme build", - "other:check-local-changes": "npm run --workspace tools/validation check-local-changes --", - "other:cherry-pick": "npm run --workspace tools/release cherry-pick --", - "other:generate-php-sync-issue": "npm run --workspace tools/release generate-php-sync-issue --", + "other:check-local-changes": "npm run --workspace @wordpress/validation-tools check-local-changes --", + "other:cherry-pick": "npm run --workspace @wordpress/validation-tools cherry-pick --", + "other:generate-php-sync-issue": "npm run --workspace @wordpress/validation-tools generate-php-sync-issue --", "other:update-packages:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer update --no-interaction", "postinstall": "patch-package", "prepare": "husky install", @@ -149,7 +149,7 @@ "storybook:e2e:dev": "concurrently \"npm run dev\" \"wait-on .dev-ready && npm run --workspace @wordpress/storybook-playwright storybook:dev\"", "storybook:e2e:build": "npm run --workspace @wordpress/storybook-playwright storybook:build", "test": "npm-run-all lint test:unit", - "test:create-block": "npm run --workspace tools/validation test-create-block --", + "test:create-block": "npm run --workspace @wordpress/validation-tools test-create-block --", "test:e2e": "npm exec --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-playwright --config playwright.config.ts", "test:e2e:debug": "npm exec --workspace @wordpress/e2e-tests-playwright -- wp-scripts test-playwright --config playwright.config.ts --ui", "test:e2e:playwright": "npm run test:e2e", From 11be795c0bd5b74125793241a21c1739ed21d145 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Thu, 11 Jun 2026 18:14:20 +0530 Subject: [PATCH 6/9] fix: Reverted unwanted package.json changes --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ea494374e2fe00..9730c8528629fe 100644 --- a/package.json +++ b/package.json @@ -133,8 +133,8 @@ "other:check-licenses": "concurrently \"npm run --workspace @wordpress/validation-tools check-licenses --\" \"wp-scripts check-licenses --dev\"", "preother:check-local-changes": "npm run docs:build && npm run --workspace @wordpress/theme build", "other:check-local-changes": "npm run --workspace @wordpress/validation-tools check-local-changes --", - "other:cherry-pick": "npm run --workspace @wordpress/validation-tools cherry-pick --", - "other:generate-php-sync-issue": "npm run --workspace @wordpress/validation-tools generate-php-sync-issue --", + "other:cherry-pick": "npm run --workspace @wordpress/release-tools cherry-pick --", + "other:generate-php-sync-issue": "npm run --workspace @wordpress/release-tools generate-php-sync-issue --", "other:update-packages:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer update --no-interaction", "postinstall": "patch-package", "prepare": "husky install", From a14b9cc11c65d763a04211afa1b7d56c88ed0989 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Thu, 11 Jun 2026 18:16:03 +0530 Subject: [PATCH 7/9] fix: other:changelog to be executed in release tools workspace --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9730c8528629fe..f6630a5abf4d0d 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "lint:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script lint", "lint:pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'", "native": "npm run --prefix packages/react-native-editor", - "other:changelog": "npm exec --workspace tools/release --no release-cli -- changelog", + "other:changelog": "npm exec --workspace @wordpress/release-tools --no release-cli -- changelog", "other:check-licenses": "concurrently \"npm run --workspace @wordpress/validation-tools check-licenses --\" \"wp-scripts check-licenses --dev\"", "preother:check-local-changes": "npm run docs:build && npm run --workspace @wordpress/theme build", "other:check-local-changes": "npm run --workspace @wordpress/validation-tools check-local-changes --", From 2bf2738667f463f1349af28e53f9d1417e76d194 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Thu, 11 Jun 2026 18:18:08 +0530 Subject: [PATCH 8/9] fix: Remove native script --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index f6630a5abf4d0d..6a49991f915900 100644 --- a/package.json +++ b/package.json @@ -128,7 +128,6 @@ "prelint:php": "npm run other:update-packages:php", "lint:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script lint", "lint:pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'", - "native": "npm run --prefix packages/react-native-editor", "other:changelog": "npm exec --workspace @wordpress/release-tools --no release-cli -- changelog", "other:check-licenses": "concurrently \"npm run --workspace @wordpress/validation-tools check-licenses --\" \"wp-scripts check-licenses --dev\"", "preother:check-local-changes": "npm run docs:build && npm run --workspace @wordpress/theme build", From cac82eb588d96f9dbef1363eb8b4a7c101718b09 Mon Sep 17 00:00:00 2001 From: im3dabasia Date: Fri, 12 Jun 2026 13:54:21 +0530 Subject: [PATCH 9/9] fix: Feedbacks as per copilot's suggestion --- .github/workflows/publish-npm-packages.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-npm-packages.yml b/.github/workflows/publish-npm-packages.yml index db19393fd2f671..0dc4bbc20b17eb 100644 --- a/.github/workflows/publish-npm-packages.yml +++ b/.github/workflows/publish-npm-packages.yml @@ -114,7 +114,7 @@ jobs: run: | cd cli npm ci - npm exec --workspace @okwordpress/release-tools -- release-cli -- npm-bugfix --ci --repository-path ../publish + npm exec --workspace @wordpress/release-tools -- release-cli -- npm-bugfix --ci --repository-path ../publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 6a49991f915900..4377a146d74af3 100644 --- a/package.json +++ b/package.json @@ -128,7 +128,7 @@ "prelint:php": "npm run other:update-packages:php", "lint:php": "wp-env run --env-cwd='wp-content/plugins/gutenberg' cli composer run-script lint", "lint:pkg-json": "wp-scripts lint-pkg-json . 'packages/*/package.json'", - "other:changelog": "npm exec --workspace @wordpress/release-tools --no release-cli -- changelog", + "other:changelog": "npm exec --workspace @wordpress/release-tools -- release-cli changelog", "other:check-licenses": "concurrently \"npm run --workspace @wordpress/validation-tools check-licenses --\" \"wp-scripts check-licenses --dev\"", "preother:check-local-changes": "npm run docs:build && npm run --workspace @wordpress/theme build", "other:check-local-changes": "npm run --workspace @wordpress/validation-tools check-local-changes --",