.gitlab-ci.yml 392 Bytes
Newer Older
Vasily Belolapotkov's avatar
Vasily Belolapotkov committed
1
image: node:lts
2 3 4 5 6 7 8

cache:
  paths:
    - node_modules/

pages:
  script:
Vasily Belolapotkov's avatar
Vasily Belolapotkov committed
9 10 11
    #install dev deps manually for building prod dists
    - echo 'installing dev dependencies' && npm install --only=dev
    - echo 'installing production dependencies' && npm install --only=prod
12 13
    - mkdir dist
    - npm run build
14
    - cp -r dist/* public/
15 16 17 18 19
  artifacts:
    paths:
      - public
  only:
    - master