release.config.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. module.exports = {
  2. branches: 'master',
  3. verifyConditions: [
  4. '@semantic-release/changelog',
  5. '@semantic-release/github',
  6. '@semantic-release/npm'
  7. ],
  8. prepare: [
  9. './tools/update-contributors',
  10. '@semantic-release/changelog',
  11. '@semantic-release/git',
  12. '@semantic-release/npm'
  13. ],
  14. publish: [
  15. '@semantic-release/github',
  16. '@semantic-release/npm'
  17. ],
  18. success: [
  19. '@semantic-release/github'
  20. ],
  21. fail: [
  22. '@semantic-release/github'
  23. ],
  24. // The release rules determine what kind of release should be triggered
  25. // based on the information included in the commit message. The default
  26. // rules used by semantic-release are the same, but they are set explicitly
  27. // for better visibility.
  28. // See https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js
  29. releaseRules: [
  30. { breaking: true, release: 'major' },
  31. { revert: true, release: 'patch' },
  32. { type: 'feat', release: 'minor' },
  33. { type: 'fix', release: 'patch' },
  34. { type: 'perf', release: 'patch' }
  35. ],
  36. // The preset determines which commits are included in the changelog and how
  37. // the changelog is formatted. The default value used by semantic-release is
  38. // the same, but it is set explicitly for visibility.
  39. // See https://semantic-release.gitbook.io/semantic-release/#commit-message-format
  40. // See https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular
  41. preset: 'angular'
  42. }