diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2626e92c..d8edfe21 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,6 @@ image: node:latest stages: - - prepare - test - build - deploy @@ -13,23 +12,17 @@ cache: &global_cache policy: pull untracked: true paths: - - node_modules/ - .npm/ -install-dependencies: - stage: prepare - script: - - npm ci --cache .npm --prefer-offline - cache: - <<: *global_cache - policy: pull-push - lint: stage: test + before_script: + - npm ci --cache .npm --prefer-offline script: - npm run lint cache: <<: *global_cache + policy: pull-push # Test: # stage: Test @@ -40,6 +33,8 @@ lint: build: stage: build + before_script: + - npm ci --cache .npm --prefer-offline script: - npm run build cache: