Skip to content
Snippets Groups Projects
Commit f387eef4 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added package-lock.json and using it as key to cache

parent 1de62a29
No related branches found
No related tags found
1 merge request!27Resolve "Update CI"
......@@ -9,5 +9,4 @@
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
package-lock.json
\ No newline at end of file
yarn-error.log
\ No newline at end of file
......@@ -42,8 +42,7 @@ prepare_node:
variables:
npm_config_cache: "$CI_PROJECT_DIR/.npm"
before_script:
- npm install -g npm-cache
- npm-cache install --cacheDirectory "$CI_PROJECT_DIR/.npm-package-cache" npm
- npm ci --cache .npm --prefer-offline
script:
- npm run prod
artifacts:
......@@ -53,10 +52,11 @@ prepare_node:
- public/mix-manifest.json
cache:
# Cache per Branch
key: "proxy-$CI_COMMIT_REF_SLUG"
key:
files:
package-lock.json
paths:
- .npm
- .npm-package-cache
- node_modules
only:
- branches
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment