image: node:12 cache: paths: - node_modules/ # We tell GitLab to install all the packages # before running anything. # Docker images come with yarn preinstalled before_script: - apt-get update -qq && apt-get install stages: - build - test - release Deploy: before_script: - npm install -g @hutson/npm-deploy-git-tag image: node:12 only: - tags script: - npm-deploy-git-tag --token ${NPM_TOKEN} --access public Release: stage: release only: - master before_script: - npm install -g @hutson/semantic-delivery-gitlab script: - semantic-delivery-gitlab --token ${GITLAB_AUTH_TOKEN} Build: stage: build only: - master before_script: - npm install script: - npm run build Test: stage: test only: - master before_script: - npm install - npm install -g codecov script: - npm run test after_script: - codecov --token=$CODECOV_TOKEN