gilde-ci-cd/templates/npm/npm-dependencies.gitlab-ci.yml
2022-07-08 09:55:42 +02:00

17 lines
374 B
YAML

.npm-dependencies:
image: $NODE_IMAGE
stage: dependencies
variables:
ADDITIONAL_GLOBAL_PACKAGES: ""
before_script:
- >
if [ "$ADDITIONAL_GLOBAL_PACKAGES" != "" ]; then
npm install -g $ADDITIONAL_GLOBAL_PACKAGES
fi
script:
- "cd $FRONTEND_DIR"
- npm install
artifacts:
expire_in: 1 days
paths:
- "**/node_modules"