optimize CI times

This commit is contained in:
Yeicor
2024-03-03 20:34:52 +01:00
parent 075682ff18
commit 258256912b
3 changed files with 9 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ import os
import subprocess
if __name__ == "__main__":
# When building the backend, make sure the frontend is built first
subprocess.run(['yarn', 'install'], check=True)
subprocess.run(['yarn', 'build', '--outDir', 'yacv_server/frontend'], check=True)
if os.getenv('SKIP_BUILD_FRONTEND') is None:
# When building the backend, make sure the frontend is built first
subprocess.run(['yarn', 'install'], check=True)
subprocess.run(['yarn', 'build', '--outDir', 'yacv_server/frontend'], check=True)