Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .semantic-release:
- stage: semantic-release
- image: registry.gitlab.com/you/tools.build.semantic-release/semantic-release-builder
- variables:
- SEMANTIC_RELEASE_VERIFY_CONDITIONS: >-
- @semantic-release/changelog,
- @semantic-release/git,
- @semantic-release/gitlab
- SEMANTIC_RELEASE_ANALIZE_COMMITS: >-
- @semantic-release/commit-analyzer
- SEMANTIC_RELEASE_GENERATE_NOTES: >-
- @semantic-release/release-notes-generator
- SEMANTIC_RELEASE_PREPARE: >-
- @semantic-release/changelog,
- @semantic-release/git
- SEMANTIC_RELEASE_PUBLISH: >-
- @semantic-release/gitlab
- SEMANTIC_RELEASE_SUCCESS: ""
- SEMANTIC_RELEASE_FAIL: ""
- script:
- - |
- if [ ! -f .releaserc ]; then
- npx semantic-release \
- --verify-conditions $SEMANTIC_RELEASE_VERIFY_CONDITIONS \
- --analyze-commits $SEMANTIC_RELEASE_ANALIZE_COMMITS \
- --generate-notes $SEMANTIC_RELEASE_GENERATE_NOTES \
- --prepare $SEMANTIC_RELEASE_PREPARE \
- --publish $SEMANTIC_RELEASE_PUBLISH \
- --success $SEMANTIC_RELEASE_SUCCESS \
- --fail $SEMANTIC_RELEASE_FAIL
- else
- npx semantic-release
- fi
- only:
- refs:
- - master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement