From 904bf24786c4a3c405c17cdbb228960620c4e2c2 Mon Sep 17 00:00:00 2001 From: Matei Stanca Date: Thu, 25 Apr 2024 16:33:37 -0400 Subject: [PATCH] Issue #49: Potential fix for yarn build:deploy not exiting: This adds an intentionally invalid SCSS to test: - Upgrading drupal/omnipedia_site_theme (7.x-dev bd7603e => 7.x-dev 30aaaea) --- .do/build/yarn.sh | 6 ++++++ composer.lock | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.do/build/yarn.sh b/.do/build/yarn.sh index b886375..989bf1f 100755 --- a/.do/build/yarn.sh +++ b/.do/build/yarn.sh @@ -16,4 +16,10 @@ # Tells App Platform to install jq for us. yarn add $(jq --raw-output '.composerDependencies | to_entries[] | [.key, .value] | [join("@")] | join(" ")' package.json) +# For whatever reason, running this package.json script doesn't correctly fail +# the whole process if the script fails. This is probably related to using +# cross-env. Note that we have to return the return value to correctly stop +# execution of the parent script on build failure, via the subsequent command. yarn build:deploy + +return "$?" diff --git a/composer.lock b/composer.lock index dbd789f..0326dc8 100644 --- a/composer.lock +++ b/composer.lock @@ -4722,12 +4722,12 @@ "source": { "type": "git", "url": "https://github.com/neurocracy/drupal-omnipedia-site-theme.git", - "reference": "bd7603eb39568b7d4ef9860355569ccdb00f0dc9" + "reference": "30aaaeac7c592610b600f654a1cb177a0297c4c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/neurocracy/drupal-omnipedia-site-theme/zipball/bd7603eb39568b7d4ef9860355569ccdb00f0dc9", - "reference": "bd7603eb39568b7d4ef9860355569ccdb00f0dc9", + "url": "https://api.github.com/repos/neurocracy/drupal-omnipedia-site-theme/zipball/30aaaeac7c592610b600f654a1cb177a0297c4c6", + "reference": "30aaaeac7c592610b600f654a1cb177a0297c4c6", "shasum": "" }, "require": { @@ -4762,7 +4762,7 @@ "source": "https://github.com/neurocracy/drupal-omnipedia-site-theme", "issues": "https://github.com/neurocracy/drupal-omnipedia-site-theme/issues" }, - "time": "2024-03-01T16:17:26+00:00" + "time": "2024-04-25T20:31:37+00:00" }, { "name": "drupal/omnipedia_user",