Commit 0a266eab authored by Dominik Hebeler's avatar Dominik Hebeler

added npm dependencies to pipeline

parent 430643ca
......@@ -13,6 +13,7 @@ variables:
stages:
- prepare
# Prepares the secret files that we cannot or don't want to share with public
prepare_secrets:
stage: prepare
image: alpine:latest
......@@ -39,4 +40,26 @@ prepare_secrets:
- database/seeds/UsersSeeder.php
only:
- branches
- tags
\ No newline at end of file
- tags
prepare_node:
stage: prepare
image: node:10
before_script:
- npm install
script:
- npm run prod
artifacts:
paths:
- node_modules
- public/js/
- public/css/
cache:
# Cache per Branch
key: "node-$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
paths:
- node_modules
only:
- branches
- tags
Markdown is supported
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