homepage-frontend/.core.yml
Arwed Mett fdae79e6a5
Some checks failed
continuous-integration/drone/push Build is failing
added installation of flow-typed to drone build
2019-02-23 11:11:47 +01:00

36 lines
662 B
YAML

kind: pipeline
name: default
steps:
- name: install
image: node
commands:
- npm install
- npx flow-typed install
- name: test
image: node
commands:
- npm test
- name: build
image: node
commands:
- npm run build
- name: publish
image: node
environment:
NPM_TOKEN:
from_secret: npm_token
commands:
- echo "//registry.npmjs.org/:_authToken=$${NPM_TOKEN}" >> .npmrc
- if [ "$(npm view @arwed/sanitize dist-tags.latest)" = "$(node -p -e "require('./package.json').version")" ]; then echo not publishing; else npm whoami & npm publish; fi
when:
branch:
- master
event:
exclude:
- pull_request