This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user