image: node stages: - lint - test - publish cache: paths: - node_modules/ before_script: - npm install - npm run build eslint: stage: lint script: - npm run lint spellcheck: stage: lint script: - npm run spellcheck ava: stage: test script: - npm run test release: stage: publish script: - npm run build - npm config set //registry.npmjs.org/:_authToken ${NPM_AUTH_TOKEN} - npm publish only: - production