mirror of https://gitlab.com/curben/blog
chore: always update npm
This commit is contained in:
parent
17a1c78560
commit
633f5bc5e8
|
@ -6,6 +6,7 @@ cache: # add cache to 'node_modules' for speeding up builds
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apk update && apk add git
|
- apk update && apk add git
|
||||||
|
- npm install --only=prod -g npm
|
||||||
- npm install --only=prod
|
- npm install --only=prod
|
||||||
|
|
||||||
test:
|
test:
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[context.production]
|
[context.production]
|
||||||
publish = "public"
|
publish = "public"
|
||||||
command = "npm install --only=prod snyk && npm run snyk && npm run hexo"
|
command = "npm install --only=prod -g npm && npm install --only=prod snyk && npm run snyk && npm run hexo"
|
||||||
|
|
Loading…
Reference in New Issue