chore(gitlab-ci): use npm ci and cache
This commit is contained in:
parent
24da2bd04c
commit
ca22061e72
@ -9,6 +9,7 @@ default:
|
|||||||
name: fpco/stack-build:lts-16.31
|
name: fpco/stack-build:lts-16.31
|
||||||
cache: &global_cache
|
cache: &global_cache
|
||||||
paths:
|
paths:
|
||||||
|
- .npm
|
||||||
- node_modules
|
- node_modules
|
||||||
- .stack
|
- .stack
|
||||||
- .stack-work
|
- .stack-work
|
||||||
@ -44,7 +45,7 @@ npm install:
|
|||||||
stage: setup
|
stage: setup
|
||||||
script:
|
script:
|
||||||
- ./.npmrc.gup
|
- ./.npmrc.gup
|
||||||
- npm install
|
- npm ci --cache .npm --prefer-offline
|
||||||
before_script: &npm
|
before_script: &npm
|
||||||
- rm -rvf /etc/apt/sources.list /etc/apt/sources.list.d
|
- rm -rvf /etc/apt/sources.list /etc/apt/sources.list.d
|
||||||
- install -v -T -m 0644 ${APT_SOURCES_LIST} /etc/apt/sources.list
|
- install -v -T -m 0644 ${APT_SOURCES_LIST} /etc/apt/sources.list
|
||||||
|
|||||||
Reference in New Issue
Block a user