From 633f5bc5e82ac7b557583aa2afc304e5a369c1eb Mon Sep 17 00:00:00 2001 From: curben <2809763-curben@users.noreply.gitlab.com> Date: Fri, 23 Aug 2019 12:06:25 +0930 Subject: [PATCH] chore: always update npm --- .gitlab-ci.yml | 1 + netlify.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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"