Commit debeea85 authored by Nikos Psaromanolakis's avatar Nikos Psaromanolakis
Browse files

fix: semantic release skipping on error

parent b94fa2e1
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ prod_extract_next_release_job:
  variables:
    GITLAB_TOKEN: $GROUP_ACCESS_TOKEN
  script:
    - DEV_RELEASE_VERSION=$(npx -y
    - npx -y
      -p @semantic-release/commit-analyzer@9.0.2
      -p @semantic-release/git@10.0.1
      -p @semantic-release/gitlab@9.5.0
@@ -51,7 +51,8 @@ prod_extract_next_release_job:
      -p @semantic-release/changelog@6.0.2
      -p conventional-changelog-conventionalcommits@5.0.0
      -p semantic-release@19.0.5
      semantic-release --dry-run | grep -oP '(?<=Published release ).*' | awk '{print $1}' || echo "no-release" )
      semantic-release --dry-run
    - DEV_RELEASE_VERSION=$(cat .next-release-version 2>/dev/null || echo "no-release")
    - echo "$DEV_RELEASE_VERSION" > dev_release_version.txt
    - cat dev_release_version.txt
  artifacts:
@@ -101,7 +102,7 @@ prod_semantic_versioning_job:
  before_script:
    - git pull origin HEAD
  script:
    - RELEASE_VERSION=$(npx -y
    - npx -y
      -p @semantic-release/commit-analyzer@9.0.2
      -p @semantic-release/git@10.0.1
      -p @semantic-release/gitlab@9.5.0
@@ -110,7 +111,8 @@ prod_semantic_versioning_job:
      -p @semantic-release/changelog@6.0.2
      -p conventional-changelog-conventionalcommits@5.0.0
      -p semantic-release@19.0.5
      semantic-release | grep -oP '(?<=Published release ).*' | awk '{print $1}' || echo "no-release" )
      semantic-release
    - RELEASE_VERSION=$(cat .next-release-version 2>/dev/null || echo "no-release")
    - echo "$RELEASE_VERSION" > release_version.txt
    - cat release_version.txt
  artifacts: