Commit 316b1392 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

fix: tbump dry-run

parent 73f774d6
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -13,3 +13,16 @@ tbump:
    - .release:rules
  needs:
    - find-next-release

tbump:dry-run:
  stage: test
  extends: tbump
  variables:
    TBUMP_NEXT_VERSION: 99.99.99
  needs: []
  artifacts: null # Disable so we don't interfere with subsequent jobs
  rules:
    - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
      exists:
        - tbump.toml
        - pyproject.toml
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ find-next-release:
  script:
    - !reference [".release:install", script]
    - wget -O .releaserc
      https://gitlab.com/just-ci/utils/-/raw/main/semantic-release/find-next-version.json
      https://gitlab.com/just-ci/utils/-/raw/main/semantic-release/find-next-version.json # https://gitlab.com/just-ci/templates/-/raw/v6.24.3/project-automation/release/find-next-release.json
    - semantic-release --dry-run --no-ci
    - echo "TBUMP_NEXT_VERSION=$(cat .VERSION 2>/dev/null || echo "[!] No new
      release" 1>&2)" > TBUMP_NEXT_VERSION.env
+3 −1
Original line number Diff line number Diff line
@@ -20,7 +20,9 @@

.release:rules:
  rules:
    - if: "$CI_COMMIT_REF_PROTECTED && $GL_TOKEN && $CI_COMMIT_TAG == null"
    - if:
        "$CI_COMMIT_REF_PROTECTED == 'true' && $GL_TOKEN && $CI_COMMIT_TAG ==
        null"
      exists:
        - tbump.toml
        - pyproject.toml
+21 −0
Original line number Diff line number Diff line
{
  "branches": [
    "+([0-9])?(.{+([0-9]),x}).x",
    "master",
    "main",
    "next",
    "next-major",
    { "name": "alpha", "channel": "alpha", "prerelease": "alpha" },
    { "name": "beta", "channel": "beta", "prerelease": "beta" },
    { "name": "rc", "channel": "rc", "prerelease": "rc" }
  ],
  "plugins": [
    "@semantic-release/commit-analyzer",
    [
      "@semantic-release/exec",
      {
        "verifyReleaseCmd": "echo ${nextRelease.version} > .VERSION"
      }
    ]
  ]
}
+26 −0
Original line number Diff line number Diff line
{
  "branches": [
    "+([0-9])?(.{+([0-9]),x}).x",
    "master",
    "main",
    "next",
    "next-major",
    { "name": "alpha", "channel": "alpha", "prerelease": "alpha" },
    { "name": "beta", "channel": "beta", "prerelease": "beta" },
    { "name": "rc", "channel": "rc", "prerelease": "rc" }
  ],
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/changelog",
    [
      "@semantic-release/git",
      {
        "assets": [],
        "message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}",
        "successComment": false
      }
    ],
    "@semantic-release/gitlab"
  ]
}
Loading