From b7124f2707310845646471065b61d709cd1e1ec0 Mon Sep 17 00:00:00 2001 From: Andreas <andreksv@ntnu.no> Date: Fri, 26 Apr 2024 10:05:20 +0200 Subject: [PATCH] feat/Updated package-lock.json --- .gitlab-ci.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 65cca68..d8d39af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,32 @@ image: node:alpine -stages: - - install_dependencies - - build_project - cache: key: "${CI_COMMIT_REF_SLUG}" paths: - node_modules/ - build/ +stages: + - install + - build + install_dependencies: - stage: install_dependencies + stage: install script: - npm ci + cache: + key: ${CI_COMMIT_REF_SLUG} + paths: + - node_modules/ + policy: push build_project: - stage: build_project + stage: build script: - npm ci - npm run build + dependencies: + - install_dependencies cache: key: "${CI_COMMIT_REF_SLUG}" paths: -- GitLab