mirror of https://gitlab.com/curben/blog
ci: remove unnecessary npm update
- updating Node also updates npm
This commit is contained in:
parent
f09ef1d5bd
commit
1610386252
|
@ -5,7 +5,6 @@ cache: # add cache to 'node_modules' for speeding up builds
|
||||||
- node_modules/ # Node modules and dependencies
|
- node_modules/ # Node modules and dependencies
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- 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 -g npm && npm install --only=prod && npm install --only=prod snyk && npm run snyk && npm run hexo"
|
command = "npm install --only=prod && npm install --only=prod --no-save snyk && npm run snyk && npm run hexo"
|
||||||
|
|
Loading…
Reference in New Issue