Commit 3eba88f5 authored by Doug Barrett's avatar Doug Barrett
Browse files

fix(ci): harden v2 release job

- Pin node image to 22 instead of floating lts tag
- Pass --yes to npx to prevent CI hangs
- Set GIT_DEPTH: 0 so semantic-release has full history and tags
- Add comment clarifying no tag format collision with root module
parent 7dfa52e3
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -123,11 +123,17 @@ go_mod_tidy:

# Release the v2 module with tags in the format v2/vX.Y.Z, which the Go
# module proxy requires for subdirectory modules.
#
# The root module's release uses tagFormat "v${version}" (via the included
# standard.yml template), so there is no risk of tag collisions with v2's
# "v2/v${version}" format.
release-v2:
  image: node:lts
  image: node:22
  stage: release
  variables:
    GIT_DEPTH: 0
  script:
    - npx semantic-release --extends ./v2/.releaserc.json
    - npx --yes semantic-release --extends ./v2/.releaserc.json
  rules:
    - if: $CI_COMMIT_BRANCH == "main"