ci(v2): add release configuration for v2 module
Context
The v2 module (gitlab.com/gitlab-org/labkit/v2) lives in a subdirectory with its own go.mod. The Go module proxy requires tags in the format v2/vX.Y.Z for subdirectory modules. The existing .releaserc.json only handles root module releases with standard vX.Y.Z tags.
Without this, v2 cannot be released as a versioned Go module.
What's in this MR?
-
v2/.releaserc.json: semantic-release config withtagFormat: "v2/v${version}"so tags match the Go module proxy convention -
.gitlab-ci.yml: adds arelease-v2job in thereleasestage that runsnpx semantic-release --extends ./v2/.releaserc.jsonon themainbranch
Open questions
- semantic-release's
commit-analyzerwill analyze all commits onmain, not just v2-scoped ones. A future improvement could filter by commit scope (e.g. onlyfeat(v2/*),fix(v2/*)) to avoid releasing v2 when only v1 changes land. For now, an extra no-op release is harmless.