.drone.yml 805 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. kind: pipeline
  2. type: docker
  3. name: default
  4. steps:
  5. - name: install
  6. image: node:14
  7. commands:
  8. - npm install
  9. - name: build
  10. image: node:14
  11. commands:
  12. - npm run build:production
  13. when:
  14. branch:
  15. - main
  16. - dev
  17. - name: build-npm
  18. image: node:14
  19. commands:
  20. - npm run build:production
  21. when:
  22. event:
  23. - tag
  24. - name: test
  25. image: node:14
  26. commands:
  27. - npm run test
  28. when:
  29. branch:
  30. - main
  31. - dev
  32. - name: docs
  33. image: node:14
  34. commands:
  35. - npm run docs:production
  36. when:
  37. branch:
  38. - main
  39. - dev
  40. - name: npm
  41. image: plugins/npm
  42. settings:
  43. token:
  44. from_secret: npm_token
  45. email:
  46. from_secret: npm_email
  47. when:
  48. event:
  49. - tag