Commit eed7755e authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

Merge branch 'hoverht-master-patch-25215' into 'master'

refactor: inform on missing .releaserc file

See merge request ci/templates!76
parents 428c91ec 25fc82a9
Loading
Loading
Loading
Loading

.releaserc

0 → 100644
+12 −0
Original line number Diff line number Diff line
{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/changelog",
    ["@semantic-release/git", {
      "assets": ["CHANGELOG.md","pyproject.toml","setup.py"],
      "message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
    }],
    "@semantic-release/gitlab",
  ]
}
+6 −0
Original line number Diff line number Diff line
@@ -12,6 +12,12 @@ semantic-release:
  variables:
    EXTRA_ARGS: ""
  script:
    - |
      if ! test -f .releaserc; then
        echo "[!] No '.releaserc' file found. The job will probably fail."
        echo "See https://gitlab.com/notno/ci-templates/-/blob/master/.releaserc for an example."
        echo "See https://semantic-release.gitbook.io/semantic-release/usage/configuration on how to configure semantic-release."
      fi
    - npm install -g semantic-release @semantic-release/gitlab @semantic-release/git @semantic-release/changelog
    - semantic-release ${EXTRA_ARGS}
  rules: