diff --git a/templates/npm/npm-build.gitlab-ci.yml b/templates/npm/npm-build.gitlab-ci.yml index 8cad713..b59abc8 100644 --- a/templates/npm/npm-build.gitlab-ci.yml +++ b/templates/npm/npm-build.gitlab-ci.yml @@ -3,12 +3,11 @@ stage: build variables: FRONTEND_BUILD_DIR: '**/dist' - before_script: + script: - > if [ "$FRONTEND_DIR" != "" ]; then cd $FRONTEND_DIR fi - script: - npm run ci:build artifacts: expire_in: 2 weeks diff --git a/templates/npm/npm-dependencies.gitlab-ci.yml b/templates/npm/npm-dependencies.gitlab-ci.yml index ea0960a..2215899 100644 --- a/templates/npm/npm-dependencies.gitlab-ci.yml +++ b/templates/npm/npm-dependencies.gitlab-ci.yml @@ -1,12 +1,11 @@ .npm-dependencies: image: $NODE_IMAGE stage: dependencies - before_script: + script: - > if [ "$FRONTEND_DIR" != "" ]; then cd $FRONTEND_DIR fi - script: - npm ci --no-audit artifacts: expire_in: 1 days diff --git a/templates/npm/npm-e2e.gitlab-ci.yml b/templates/npm/npm-e2e.gitlab-ci.yml index 28b3637..b40cede 100644 --- a/templates/npm/npm-e2e.gitlab-ci.yml +++ b/templates/npm/npm-e2e.gitlab-ci.yml @@ -1,12 +1,11 @@ .npm-e2e: image: $NODE_E2E_IMAGE stage: verify - before_script: + script: - > if [ "$FRONTEND_DIR" != "" ]; then cd $FRONTEND_DIR fi - script: - npm run ci:e2e artifacts: expire_in: '7d' diff --git a/templates/npm/npm-lint.gitlab-ci.yml b/templates/npm/npm-lint.gitlab-ci.yml index 779444f..5edaee9 100644 --- a/templates/npm/npm-lint.gitlab-ci.yml +++ b/templates/npm/npm-lint.gitlab-ci.yml @@ -1,10 +1,9 @@ .npm-lint: image: $NODE_IMAGE stage: verify - before_script: + script: - > if [ "$FRONTEND_DIR" != "" ]; then cd $FRONTEND_DIR fi - script: - npm run ci:lint \ No newline at end of file diff --git a/templates/npm/npm-verify.gitlab-ci.yml b/templates/npm/npm-verify.gitlab-ci.yml index b85a433..6a9045b 100644 --- a/templates/npm/npm-verify.gitlab-ci.yml +++ b/templates/npm/npm-verify.gitlab-ci.yml @@ -1,12 +1,11 @@ .npm-verify: image: $NODE_IMAGE stage: verify - before_script: + script: - > if [ "$FRONTEND_DIR" != "" ]; then cd $FRONTEND_DIR fi - script: - npm run ci:test artifacts: expire_in: '7d'