chore: always update npm

This commit is contained in:
curben 2019-08-23 12:06:25 +09:30
parent 17a1c78560
commit 633f5bc5e8
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ cache: # add cache to 'node_modules' for speeding up builds
before_script:
- apk update && apk add git
- npm install --only=prod -g npm
- npm install --only=prod
test:

View File

@ -1,3 +1,3 @@
[context.production]
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"