Skip to content

Commit a8082b1

Browse files
committed
Modify composer dependency installation
1 parent 172b629 commit a8082b1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/create-package.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ jobs:
1919
path: /tmp/composer-cache
2020
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
2121

22-
- uses: php-actions/composer@v6
22+
- name: Install Composer dependencies
23+
uses: php-actions/composer@v6
24+
with:
25+
args: --no-dev --optimize-autoloader
26+
2327
- name: Setup Node.js
2428
uses: actions/setup-node@v3
2529
with:
@@ -31,6 +35,9 @@ jobs:
3135
- name: Build assets with wp-scripts
3236
run: npm run build
3337

38+
- name: Remove dev dependencies
39+
run: composer install --no-dev --optimize-autoloader
40+
3441
- name: Exclude files listed in .distignore
3542
run: |
3643
if [ -f .distignore ]; then

0 commit comments

Comments
 (0)