image: node:8.16 stages: - install - build - test - publish include: template: Dependency-Scanning.gitlab-ci.yml install: stage: install artifacts: paths: - node_modules/ expire_in: 1 week script: - yarn install build: stage: build dependencies: - install artifacts: paths: - colors/ - shaders/ - src/ - swatches/ expire_in: 1 week script: - yarn run compile test: stage: test dependencies: - install - build script: - yarn run test publish: stage: publish only: - master dependencies: - install - build before_script: - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc script: - yarn publish