stages: - test - deploy test: image: node script: - apt update -y && apt install -y -q xvfb libgtk2.0-0 libxtst6 libxss1 libgconf-2-4 libnss3 libasound2 libatk-bridge2.0-0 libgtk-3-0 - yarn - npm run lint deploy: image: node:13-alpine only: - tags script: - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc - npm publish