Description
Problem
My team has a bit of an interesting versioning setup in GitLab CI/CD where we:
- Don't want to run a pipeline on the version bump commit on a development branch
- Want to run a pipeline on the version bump commit once it makes it into a primary (master) branch
Adding [skip ci]
to every commit means we need to manually run pipelines after merges if the version bump commit is the most recent commit after a merge.
Proposal
GitLab supports a ci.skip option that when combined with this plugin should allow us to achieve both scenarios when we:
- omit the
[skip ci]
string from the commit message template - configure
@semantic-release/git
to use theci.skip
push option
Version commits to our develop branch won't be built, and merges to our master/production branches will.
This support should still mean that this plugin is CI agnostic as push options is a git feature rather than a GitLab feature and not required at all.
I'm happy to make a PR for this if it sounds like something that this plugin should support. It looks like I'd need to pass through any push options to the push()
method here and here.
Thanks 😄