image: node:9.4-alpine before_script: # bower need git - apk add --update git - npm install # for (unknown) reasons, postinstall script are not automatically called - npm run-script postinstall - npm run-script analyze - npm run-script lint mono_stage: except: - /^v\d+\.\d+\.\d.*$/ script: - echo 'Ok' mono_stage_publish: only: - /^v\d+\.\d+\.\d.*$/ script: - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc - npm publish