Skip to content

Commit

Permalink
EWPP-3865: Fix build step.
Browse files Browse the repository at this point in the history
  • Loading branch information
ademarco committed Jan 12, 2024
1 parent acf9e8f commit 31f0c80
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ pipeline:
commands:
# To build the theme using a development version of ECL set its development branch in .env.dist
# and make sure that ECL_BUILD is set to "dev".
- 'make .env && . .env'
- '[ "$ECL_BUILD" == "dev" ] && make ecl-dev'
- '[ "$ECL_BUILD" != "dev" ] && npm install --unsafe-perm'
- '[ "$ECL_BUILD" != "dev" ] && NODE_ENV=production npm run build'
- 'bash ./scripts/build-ecl-pipeline.sh'

composer-install:
group: post-prepare
Expand Down
12 changes: 12 additions & 0 deletions scripts/build-ecl-pipeline.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# To build the theme using a development version of ECL set its development branch in .env.dist
# and make sure that ECL_BUILD is set to "dev".
. .env.dist
if [ "$ECL_BUILD" = "dev" ]; then
echo "Building from development copy..."
make ecl-dev
else
echo "Building from stable release..."
npm install --unsafe-perm
NODE_ENV=production npm run build
fi

0 comments on commit 31f0c80

Please sign in to comment.