Newer
Older
- 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
- 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