Skip to content
Snippets Groups Projects
.gitlab-ci.yml 535 B
Newer Older
stages:
  - install_dependencies
  - lint
  - build_project
    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 --prefer-offline  # --prefer-offline to make it prefer using locally cached packages rather than downloading
lint:
  stage: lint
  script:
    - npm run lint    
  allow_failure: true  

build_project:
  stage: build_project
  script: