Skip to content

Commit f31444e

Browse files
committed
ci: make translation import a dedicated task
1 parent 539b8de commit f31444e

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

apps/cms/prep-database.sh

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
if [ ! -z $LAGOON ]; then
2-
# Do not touch database on Lagoon
3-
exit 0
4-
fi
5-
6-
if [ ! -z $SKIP_DRUPAL_INSTALL ]; then
7-
exit 0
8-
fi
9-
101
set -e
11-
122
if ! test -f web/sites/default/files/.sqlite; then
133
pnpm drupal-install
144
else
155
pnpm drush deploy -y
166
fi
17-
18-
# In any case, re-import translation string.
19-
pnpm import-translations
20-
pnpm drush cr

apps/cms/turbo.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
"inputs": ["config/**"],
2323
"outputs": ["web/sites/default/files/.sqlite"]
2424
},
25+
"import-translations": {
26+
"dependsOn": ["config:import", "@custom/ui#prep:i18n"],
27+
"outputs": ["web/sites/default/files/.sqlite"]
28+
},
2529
"prep:composer": {
2630
"inputs": [
2731
"composer.json",
@@ -41,7 +45,7 @@
4145
]
4246
},
4347
"clear": {
44-
"dependsOn": ["config:import", "^prep"],
48+
"dependsOn": ["import-translations", "^prep"],
4549
"cache": false
4650
},
4751
"dev": {

0 commit comments

Comments
 (0)