diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..a2a1c0bfe75a1848774d421d1085d95c8f924fb9 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +stage: + - build + +build: + image: node:10 + tags: [docker] + variables: + NPM_CONFIG_CACHE: "$CI_PROJECT_DIR/.npm" + script: + - npm install + - npm run build + artifacts: + name: dist + expire_in: 2 years + paths: + - dist/ + cache: + key: "$CI_COMMIT_REF_NAME-npm" + paths: + - "$NPM_CONFIG_CACHE"