Skip to content

Commit 003e8dd

Browse files
committed
Cache node_modules per Node.js version.
The node:latest image changes version every once in a while; the explicit version key ensures that npm packages are up to date.
1 parent f5dff0c commit 003e8dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ before_script:
44
- npm install
55

66
cache:
7+
key: "$CI_PROJECT_PATH/$CI_BUILD_REF_NAME/$NODE_VERSION"
78
paths:
89
- node_modules/
910

0 commit comments

Comments
 (0)