This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit e26a365e authored by Daniel Rainer's avatar Daniel Rainer
Browse files

Use commit sha for npm cache

parent 516dcbd1
Branches
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -17,10 +17,9 @@ before_script:
npm-install:
stage: setup
script:
- echo "$CI_COMMIT_REF_NAME"
- npm install
cache:
key: '$CI_COMMIT_REF_NAME'
key: '$CI_COMMIT_SHA'
paths:
- node_modules/
policy: pull-push
......@@ -42,7 +41,7 @@ prettier:
allow_failure: true
needs: [npm-install]
cache:
key: '$CI_COMMIT_REF_NAME'
key: '$CI_COMMIT_SHA'
paths:
- node_modules/
policy: pull
......@@ -56,7 +55,7 @@ eslint:
allow_failure: true
needs: [npm-install]
cache:
key: '$CI_COMMIT_REF_NAME'
key: '$CI_COMMIT_SHA'
paths:
- node_modules/
policy: pull
......@@ -122,7 +121,7 @@ frontend-test:
allow_failure: true
needs: [npm-install]
cache:
key: '$CI_COMMIT_REF_NAME'
key: '$CI_COMMIT_SHA'
paths:
- node_modules/
policy: pull
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment