fix typo3 build always without frontend
All checks were successful
Self Test / test (push) Successful in 13s
All checks were successful
Self Test / test (push) Successful in 13s
This commit is contained in:
parent
051b997999
commit
4b7b0f9764
1 changed files with 0 additions and 24 deletions
|
|
@ -21,16 +21,6 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: '8.3'
|
default: '8.3'
|
||||||
node_version:
|
|
||||||
description: 'Node.js version'
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: '20'
|
|
||||||
build_frontend:
|
|
||||||
description: 'Run npm build'
|
|
||||||
required: false
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
artifact_name:
|
artifact_name:
|
||||||
description: 'Name of the build artifact to upload'
|
description: 'Name of the build artifact to upload'
|
||||||
required: false
|
required: false
|
||||||
|
|
@ -54,27 +44,13 @@ jobs:
|
||||||
php-version: ${{ inputs.php_version }}
|
php-version: ${{ inputs.php_version }}
|
||||||
tools: composer
|
tools: composer
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
if: ${{ inputs.build_frontend }}
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: ${{ inputs.node_version }}
|
|
||||||
|
|
||||||
- name: Install PHP dependencies
|
- name: Install PHP dependencies
|
||||||
run: composer install --prefer-dist --no-progress --no-dev --ignore-platform-reqs
|
run: composer install --prefer-dist --no-progress --no-dev --ignore-platform-reqs
|
||||||
|
|
||||||
- name: Install Node dependencies & build
|
|
||||||
if: ${{ inputs.build_frontend }}
|
|
||||||
run: |
|
|
||||||
npm ci
|
|
||||||
npm run build
|
|
||||||
|
|
||||||
- name: Create artifact
|
- name: Create artifact
|
||||||
run: |
|
run: |
|
||||||
tar -czf build.tar.gz \
|
tar -czf build.tar.gz \
|
||||||
bin public packages config vendor build composer.json composer.lock \
|
bin public packages config vendor build composer.json composer.lock \
|
||||||
$([ -d "node_modules" ] && echo "node_modules") \
|
|
||||||
$([ -d "dist" ] && echo "dist") \
|
|
||||||
2>/dev/null || true
|
2>/dev/null || true
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue