From 69f4fc9b64468a485f375686c48b6cb5a99f7fa6 Mon Sep 17 00:00:00 2001
From: Philipp Bammes
Date: Thu, 12 Dec 2024 05:38:48 +0100
Subject: [PATCH 1/2] feat: pre-install
`sniccowp/php-scoper-wordpress-excludes`
---
.github/workflows/build-plugin-archive.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/build-plugin-archive.yml b/.github/workflows/build-plugin-archive.yml
index 172ca1df..589b5362 100644
--- a/.github/workflows/build-plugin-archive.yml
+++ b/.github/workflows/build-plugin-archive.yml
@@ -165,7 +165,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ inputs.PHP_VERSION_BUILD }}
- tools: humbug/php-scoper, rector
+ tools: humbug/php-scoper, sniccowp/php-scoper-wordpress-excludes, rector
- name: Check optional Composer build tools
id: composer-tools
From 94642f9c395dd2986f7c3cde403c129f969a8aa9 Mon Sep 17 00:00:00 2001
From: Philipp Bammes
Date: Thu, 12 Dec 2024 05:42:24 +0100
Subject: [PATCH 2/2] docs: link tools, fix description
---
docs/archive-creation.md | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/docs/archive-creation.md b/docs/archive-creation.md
index 089b96dc..3d28a0e2 100644
--- a/docs/archive-creation.md
+++ b/docs/archive-creation.md
@@ -6,10 +6,12 @@ GitHub Actions.
To achieve that, the reusable workflow:
1. Installs dependencies (including dev-dependencies) defined in `composer.json`
-2. Executes `inpsyde/composer-assets-compiler` if required & configured by the package
-3. Executes `inpsyde/wp-translation-downloader` if required & configured by the package
-4. Executes PHP-Scoper if configured by the package
-5. Executes Rector if configured by the package
+2. Executes [Composer Asset Compiler](https://github.com/inpsyde/composer-asset-compiler) if
+ configured by the package
+3. Executes [WordPress Translation Downloader](https://github.com/inpsyde/wp-translation-downloader)
+ if configured by the package
+4. Executes [PHP-Scoper](https://github.com/humbug/php-scoper) if configured by the package
+5. Executes [Rector](https://github.com/rectorphp/rector) if configured by the package
6. Re-installs dependencies without dev-dependencies
7. Sets current commit hash and plugin version in the plugin's main file
8. Runs `wp dist-archive` to create the final archive (with builtin support for a `.distignore`