Skip to content

Commit e030fea

Browse files
Merge pull request #433 from Drupalcz/issue431-dist-folder
Issue 431, trying to fix: dist folder missing for libraries.
2 parents ec77b65 + ffa6269 commit e030fea

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/scripts/build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ set -x
7979
composer install --prefer-dist --no-progress --no-suggest
8080
{ [ "${DEBUG}" ] || set +x; } 2>/dev/null
8181

82+
# Build all Drupal libraries
83+
for dir in docroot/libraries/*; do
84+
if [ -f "$dir/package.json" ]; then
85+
cd "$dir"
86+
npm ci
87+
npm run build || true
88+
cd -
89+
fi
90+
done
91+
8292
# Get current branch name.
8393
BRANCHNAME="$(git rev-parse --symbolic-full-name --abbrev-ref HEAD)"
8494
if [ "$BRANCHNAME" == "HEAD" ]; then

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
uses: actions/checkout@v2
2727
with:
2828
fetch-depth: '0'
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v3
31+
with:
32+
node-version: '24'
2933
- name: Setup PHP and tools
3034
uses: shivammathur/setup-php@v2
3135
with:

0 commit comments

Comments
 (0)