From c510bd6493d286f0301007c51ca1980db123eeef Mon Sep 17 00:00:00 2001 From: Andreas <andreksv@ntnu.no> Date: Fri, 26 Apr 2024 08:46:34 +0200 Subject: [PATCH] feat/Updated .gitlab-ci.yml --- .gitlab-ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7c52b79..3ac0515 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,19 +4,17 @@ stages: - install_dependencies - build_project +cache: + key: "${CI_COMMIT_REF_SLUG}" # Branch-specific cache keys to have separate caches across branches. + paths: + - node_modules/ + install_dependencies: stage: install_dependencies script: - npm ci - artifacts: - paths: - - node_modules build_project: stage: build_project script: - npm run build - artifacts: - paths: - - node_modules/ - -- GitLab