ci(gitlab): switch npm to pnpm

This commit is contained in:
MDLeom 2020-05-16 07:09:19 +01:00
parent dd3db60689
commit ff62fb9ad4
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 4 additions and 3 deletions

View File

@ -7,11 +7,12 @@ 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 --only=prod
- npm install -g pnpm
- pnpm install
script:
- npm install --only=prod snyk && npm run snyk # Refer to "scripts" in package.json
- npm run hexo
- pnpm install snyk && pnpm run snyk # Refer to "scripts" in package.json
- pnpm run hexo
# Update github mirror
after_script: