Skip to content

Instantly share code, notes, and snippets.

@mostafabahri
Last active April 14, 2020 01:16
Show Gist options
  • Save mostafabahri/283897c4dd0e1916c7a5b5f764f03709 to your computer and use it in GitHub Desktop.
Save mostafabahri/283897c4dd0e1916c7a5b5f764f03709 to your computer and use it in GitHub Desktop.
gitlab ci npm with caching
---
stages:
- test
test:
image: node:11-alpine
stage: test
cache:
paths:
- .npm-cache/
before_script:
- npm ci --cache .npm-cache
script:
- npm run test
@mostafabahri
Copy link
Author

Faster than npm install and caching node_modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment