# node.js image: node:6 # Before building currentrequest. as babel is needed. before_script: - npm install # Stage's for developing build and deploy. stages: - build - deploy # Stage's execution with npm publish cr_build: stage: build script: - npm install @babel/core @babel/cli -g - npm run build release: stage: deploy script: - echo '//registry.npmjs.org/:_authToken=5dcfdd9d-8ea6-4e48-900a-778e2fafa6a1'>.npmrc - yarn publish