Add 'install' step and cache it
This commit is contained in:
parent
1a1df69d0b
commit
677ccfdf7e
1 changed files with 9 additions and 4 deletions
|
@ -8,17 +8,22 @@ cache:
|
|||
files:
|
||||
- yarn.lock
|
||||
paths:
|
||||
- node_modules
|
||||
- node_modules/
|
||||
|
||||
stages:
|
||||
- install
|
||||
- lint
|
||||
- test
|
||||
- build
|
||||
- deploy
|
||||
|
||||
before_script:
|
||||
- env
|
||||
- yarn
|
||||
install_dependencies:
|
||||
stage: install
|
||||
script:
|
||||
- yarn install --ignore-scripts
|
||||
artifacts:
|
||||
paths:
|
||||
- node_modules/
|
||||
|
||||
lint-js:
|
||||
stage: lint
|
||||
|
|
Loading…
Reference in a new issue