Add install dependencies stage.

This commit is contained in:
Spencer Ofwiti 2020-11-25 11:49:35 +03:00
parent 6aaf05bacd
commit 13ac7fe77c

View File

@ -1,7 +1,23 @@
job_1:
stage: stage_a
stages:
- install
install_dependencies:
stage: install
image: node:15-alpine3.10
tags:
- docker
script:
- node --version
- npm install
cache:
key:
files:
- package-lock.json
paths:
- node_modules
policy: pull
only:
refs:
- merge_requests
- master
changes:
- package-lock.json