From 1610386252dfad44c6a64cead924dc8f5919a8ca Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Mon, 4 May 2020 11:31:30 +0100 Subject: [PATCH] ci: remove unnecessary npm update - updating Node also updates npm --- .gitlab-ci.yml | 1 - netlify.toml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f5b5616..af71d58 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,7 +5,6 @@ cache: # add cache to 'node_modules' for speeding up builds - node_modules/ # Node modules and dependencies before_script: - - npm install --only=prod -g npm - npm install --only=prod test: diff --git a/netlify.toml b/netlify.toml index ecb5395..ad0dda1 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [context.production] publish = "public" - command = "npm install --only=prod -g npm && npm install --only=prod && npm install --only=prod snyk && npm run snyk && npm run hexo" + command = "npm install --only=prod && npm install --only=prod --no-save snyk && npm run snyk && npm run hexo"