stages:
  - build
  - docs

build:
  stage: build
  image: registry.gitlab.com/kemao/node
  script:
    - node -v & npm -v
    - npm install
    - npm run package-tools build --online
    - npm run package-tools publish
  only: 
    - master
    
pages:
  stage: docs
  image: registry.gitlab.com/kemao/node
  script:
    - node -v & npm -v
    - npm install
    - npm run docs
    - mv build/docs public
  artifacts:
    paths:
      - public
