From 399019f0ca90e2bc6643075595f31f2450eae3a5 Mon Sep 17 00:00:00 2001 From: Alex Munoz Date: Sat, 11 Jun 2022 21:51:43 +0200 Subject: [PATCH] refactor: update templates --- pipelines/npm.gitlab-ci.yml | 1 + templates/npm/npm-build.gitlab-ci.yml | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pipelines/npm.gitlab-ci.yml b/pipelines/npm.gitlab-ci.yml index f467cf9..65237fd 100644 --- a/pipelines/npm.gitlab-ci.yml +++ b/pipelines/npm.gitlab-ci.yml @@ -12,6 +12,7 @@ include: variables: NODE_IMAGE: node:16.15-alpine + FRONTEND_BUILD_DIR: 'dist/' Dependencies-npm: extends: .npm-dependencies diff --git a/templates/npm/npm-build.gitlab-ci.yml b/templates/npm/npm-build.gitlab-ci.yml index cc4c794..c960517 100644 --- a/templates/npm/npm-build.gitlab-ci.yml +++ b/templates/npm/npm-build.gitlab-ci.yml @@ -1,9 +1,8 @@ -variables: - FRONTEND_BUILD_DIR: 'dist/' - .npm-build: image: $NODE_IMAGE stage: build + variables: + FRONTEND_BUILD_DIR: 'dist/' before_script: - > if [ "$FRONTEND_DIR" != "" ]; then