ci(gitlab): update npm

- partially revert 1610386252
This commit is contained in:
MDLeom 2020-05-16 07:15:05 +01:00
parent 6ea63710ee
commit 871b9965bb
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 2 additions and 1 deletions

View File

@ -7,10 +7,11 @@ cache: # add cache to 'node_modules' for speeding up builds
test:
before_script:
- 'which ssh-agent || (apk update && apk add openssh-client git)'
- npm install -g npm
- npm install --only=prod
script:
- npm install --only=prod snyk && npm run snyk # Refer to "scripts" in package.json
- npm install snyk && npm run snyk # Refer to "scripts" in package.json
- npm run hexo
# Update github mirror