Add install dependencies stage.
This commit is contained in:
parent
6aaf05bacd
commit
13ac7fe77c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user