# Official framework image. Look for the different tagged releases at: # https://hub.docker.com/r/library/node/tags/ image: node:8 before_script: - npm install # This folder is cached between builds # http://docs.gitlab.com/ce/ci/yaml/README.html#cache cache: paths: - node_modules/ publish: stage: deploy only: - tags - triggers script: - npm run prepublish - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc - npm publish --access public