Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. .semantic-release:
  2. stage: semantic-release
  3. image: registry.gitlab.com/you/tools.build.semantic-release/semantic-release-builder
  4. variables:
  5. SEMANTIC_RELEASE_VERIFY_CONDITIONS: >-
  6. @semantic-release/changelog,
  7. @semantic-release/git,
  8. @semantic-release/gitlab
  9. SEMANTIC_RELEASE_ANALIZE_COMMITS: >-
  10. @semantic-release/commit-analyzer
  11. SEMANTIC_RELEASE_GENERATE_NOTES: >-
  12. @semantic-release/release-notes-generator
  13. SEMANTIC_RELEASE_PREPARE: >-
  14. @semantic-release/changelog,
  15. @semantic-release/git
  16. SEMANTIC_RELEASE_PUBLISH: >-
  17. @semantic-release/gitlab
  18. SEMANTIC_RELEASE_SUCCESS: ""
  19. SEMANTIC_RELEASE_FAIL: ""
  20. script:
  21. - |
  22. if [ ! -f .releaserc ]; then
  23. npx semantic-release \
  24. --verify-conditions $SEMANTIC_RELEASE_VERIFY_CONDITIONS \
  25. --analyze-commits $SEMANTIC_RELEASE_ANALIZE_COMMITS \
  26. --generate-notes $SEMANTIC_RELEASE_GENERATE_NOTES \
  27. --prepare $SEMANTIC_RELEASE_PREPARE \
  28. --publish $SEMANTIC_RELEASE_PUBLISH \
  29. --success $SEMANTIC_RELEASE_SUCCESS \
  30. --fail $SEMANTIC_RELEASE_FAIL
  31. else
  32. npx semantic-release
  33. fi
  34.  
  35. only:
  36. refs:
  37. - master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement