# https://github.com/semantic-release/semantic-release#commit-message-format # https://levelup.gitconnected.com/semantic-versioning-and-release-automation-on-gitlab-9ba16af0c21 semantic-release: image: registry.gitlab.com/notno/semantic-release-gitlab:latest stage: .post variables: PLUGINS: "@semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/gitlab" EXTRA_ARGS: "" # See https://semantic-release.gitbook.io/semantic-release/usage/configuration script: - semantic-release ${EXTRA_ARGS} --plugins $PLUGINS rules: - if: $CI_COMMIT_TAG when: never - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH