From 8d252220597184fc92fc64b6ffd83d9bb74abc4e Mon Sep 17 00:00:00 2001
From: ismcarb <715-ismcarb@users.noreply.gitlab.inf.uva.es>
Date: Wed, 18 Dec 2024 09:33:53 +0000
Subject: [PATCH] Update file .gitlab-ci.yml

---
 .gitlab-ci.yml | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4229fe8..548fb38 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,20 @@
-# The Docker image that will be used to build your app
+# Especificar la imagen Docker que se usará para el entorno de construcción
 image: node:lts
-# Functions that should be executed before the build script is run
+
+# Definir etapas si necesitas más control (opcional)
+stages:
+  - build
+
+# Tareas previas a la ejecución del script de construcción
 before_script:
   - npm ci
+
+# Definir el trabajo principal para construir la aplicación
+build_app:
+  stage: build
+  script:
+    - echo "Construyendo la aplicación..."
+    - npm run build
+  artifacts:
+    paths:
+      - dist/ # Cambia a la carpeta donde se generen tus artefactos
-- 
GitLab