From ffa6269ef4f2c263d97bc9cb1ad9ba3eefc2f5cc Mon Sep 17 00:00:00 2001 From: Martin Kolar Date: Thu, 5 Feb 2026 19:12:51 +0100 Subject: [PATCH 1/5] Issue 431, trying to fix: dist folder missing for libraries. --- .github/scripts/build.sh | 10 ++++++++++ .github/workflows/build.yml | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index eb9bb0e41..2b75f25ac 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -79,6 +79,16 @@ set -x composer install --prefer-dist --no-progress --no-suggest { [ "${DEBUG}" ] || set +x; } 2>/dev/null +# Build all Drupal libraries +for dir in docroot/libraries/*; do + if [ -f "$dir/package.json" ]; then + cd "$dir" + npm ci + npm run build || true + cd - + fi +done + # Get current branch name. BRANCHNAME="$(git rev-parse --symbolic-full-name --abbrev-ref HEAD)" if [ "$BRANCHNAME" == "HEAD" ]; then diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 95bacd927..4a8c65bbf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,10 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: '0' + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '24' - name: Setup PHP and tools uses: shivammathur/setup-php@v2 with: From 7c6b4825a09873cdda53e26e2636c544fbbccc5f Mon Sep 17 00:00:00 2001 From: Martin Kolar Date: Thu, 5 Feb 2026 19:24:26 +0100 Subject: [PATCH 2/5] Issue 431, removing npm ci --- .github/scripts/build.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index 2b75f25ac..09062ce2c 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -83,7 +83,6 @@ composer install --prefer-dist --no-progress --no-suggest for dir in docroot/libraries/*; do if [ -f "$dir/package.json" ]; then cd "$dir" - npm ci npm run build || true cd - fi From ba18dcfc06072e2c73cd743258dfd57117dc40b5 Mon Sep 17 00:00:00 2001 From: Miro Michalicka Date: Thu, 5 Feb 2026 19:42:42 +0100 Subject: [PATCH 3/5] Replace npm with yarn for building libraries --- .github/scripts/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index 09062ce2c..4f2fc20ff 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -83,7 +83,8 @@ composer install --prefer-dist --no-progress --no-suggest for dir in docroot/libraries/*; do if [ -f "$dir/package.json" ]; then cd "$dir" - npm run build || true + yarn install + yarn build cd - fi done From 3e727940d6af5415f0343d8497e1874e9522777d Mon Sep 17 00:00:00 2001 From: Miro Michalicka Date: Thu, 5 Feb 2026 19:46:34 +0100 Subject: [PATCH 4/5] Change Node.js version from 24 to 16 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a8c65bbf..0b1d9f38f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '24' + node-version: '16' - name: Setup PHP and tools uses: shivammathur/setup-php@v2 with: From bd8b4715d872e53cb51c7053d037ee60e87258a6 Mon Sep 17 00:00:00 2001 From: Miro Michalicka Date: Thu, 5 Feb 2026 19:51:14 +0100 Subject: [PATCH 5/5] Update build script to focus on Dropzone library Removed the loop for building all Drupal libraries and updated to build only the Dropzone library. --- .github/scripts/build.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/scripts/build.sh b/.github/scripts/build.sh index 4f2fc20ff..409ef1f91 100755 --- a/.github/scripts/build.sh +++ b/.github/scripts/build.sh @@ -79,15 +79,11 @@ set -x composer install --prefer-dist --no-progress --no-suggest { [ "${DEBUG}" ] || set +x; } 2>/dev/null -# Build all Drupal libraries -for dir in docroot/libraries/*; do - if [ -f "$dir/package.json" ]; then - cd "$dir" - yarn install - yarn build - cd - - fi -done +# Build Dropzone Drupal library +cd "docroot/libraries/dropzone" +yarn install +yarn build +cd - # Get current branch name. BRANCHNAME="$(git rev-parse --symbolic-full-name --abbrev-ref HEAD)"