diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 28196cf..d04a26e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,7 @@ cache: # add cache to 'node_modules' for speeding up builds before_script: - apk update && apk add git + - npm install --only=prod -g npm - npm install --only=prod test: diff --git a/netlify.toml b/netlify.toml index a81d8fd..340dc51 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [context.production] publish = "public" - command = "npm install --only=prod snyk && npm run snyk && npm run hexo" + command = "npm install --only=prod -g npm && npm install --only=prod snyk && npm run snyk && npm run hexo"