ci(gitlab): move `npm install` to job script

- global script somehow doesn't work anymore
This commit is contained in:
MDLeom 2020-05-15 11:34:26 +01:00
parent 09871aa8fe
commit 755e16c5de
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 4 additions and 3 deletions

View File

@ -4,12 +4,10 @@ cache: # add cache to 'node_modules' for speeding up builds
paths:
- node_modules/ # Node modules and dependencies
before_script:
- npm install --only=prod
test:
before_script:
- 'which ssh-agent || (apk update && apk add openssh-client git)'
- npm install --only=prod
script:
- npm install --only=prod snyk && npm run snyk # Refer to "scripts" in package.json
@ -45,6 +43,9 @@ test:
when: always
renovate: # Check dependency update
before_script:
- npm install --only=prod
script:
- npm install --only=prod renovate
- npm run renovate