From 871b9965bbf1e0805a770640501c0dcc6a97fcf2 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 16 May 2020 07:15:05 +0100 Subject: [PATCH] ci(gitlab): update npm - partially revert 1610386252dfad44c6a64cead924dc8f5919a8ca --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1e8cfd5..99d5b85 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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