Skip to content

Commit 7d2fc21

Browse files
Update build workflows to install composer dependencies
1 parent ac21b86 commit 7d2fc21

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/build-release-zip.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@ jobs:
3535
if: steps.cache-node-modules.outputs.cache-hit != 'true'
3636
run: npm ci --no-optional
3737

38+
- name: Install Composer dependencies and dump autoload
39+
run: |
40+
composer install --no-dev --optimize-autoloader
41+
composer dump-autoload
42+
3843
- name: Build plugin
3944
run: |
4045
npm run build
41-
composer dump-autoload
4246
4347
- name: Install SVN
4448
run: |

.github/workflows/wordpress-plugin-deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ jobs:
1919
node-version-file: '.nvmrc'
2020
cache: 'npm'
2121

22+
- name: Install Composer dependencies and dump autoload
23+
run: |
24+
composer install --no-dev --optimize-autoloader
25+
composer dump-autoload
26+
2227
- name: Build
2328
run: |
2429
npm ci --no-optional

0 commit comments

Comments
 (0)