diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1e8cfd5..d9ee615 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: