Improving build speed by using global cache in GitLab

Cache it's a set of files that a job can download before running and upload after execution.
To use the cache - add this to global area of .gitlab-ci.yml:

# This folder is cached between builds
cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - node_modules/