stages: - test - docs test:unit: image: node:12 stage: test cache: paths: - node_modules/ - .yarn before_script: - yarn install --silent --frozen-lockfile script: - yarn test:unit test:lint: image: node:12 stage: test cache: paths: - node_modules/ - .yarn before_script: - yarn install --silent --frozen-lockfile script: - yarn lint --no-fix docs:deploy:now: image: node:12 stage: docs cache: paths: - node_modules/ - .yarn only: refs: - master variables: - $NOW_TOKEN && $NOW_PROJECT_ID && $NOW_ORG_ID before_script: - yarn install --silent --frozen-lockfile script: - yarn docs:build - yarn global add now@17 - now --token $NOW_TOKEN --prod