update
Build WordPress Plugin for Gitea / build-release (push) Failing after 8s

This commit is contained in:
Mohamed Youssef
2026-08-02 09:43:21 +03:00
parent ebc7bfb4f6
commit ee4f96656b
+23 -23
View File
@@ -16,40 +16,40 @@ jobs:
# --------------------------------
# OPTIONAL: Setup PHP & Composer
# --------------------------------
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer
# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: '7.4'
# tools: composer
# Remove if your plugin does not use Composer.
# --------------------------------
# OPTIONAL: Setup Node & NPM
# --------------------------------
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '20'
# cache: 'npm'
# Remove if your plugin does not use NPM.
# --------------------------------
# OPTIONAL: Install dependencies & build assets
# --------------------------------
- name: Install Composer dependencies (production only)
run: |
if [ -f "composer.json" ]; then
composer install --no-dev --prefer-dist --optimize-autoloader
fi
# - name: Install Composer dependencies (production only)
# run: |
# if [ -f "composer.json" ]; then
# composer install --no-dev --prefer-dist --optimize-autoloader
# fi
- name: Install NPM dependencies & build
run: |
if [ -f "package.json" ]; then
npm ci
fi
if [ -f "package.json" ] && grep -q '"build"' package.json; then
npm run build
fi
# - name: Install NPM dependencies & build
# run: |
# if [ -f "package.json" ]; then
# npm ci
# fi
# if [ -f "package.json" ] && grep -q '"build"' package.json; then
# npm run build
# fi
# --------------------------------
# Extract plugin metadata