image: node:latest # This folder is cached between builds cache: paths: - node_modules/ test_async: script: - npm install publish: stage: deploy only: - tags - triggers script: - npm install - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc - npm publish