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

fix: semantic release skipping on error [skip ci]

parent 23ef4ff0
Loading
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -295,7 +295,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
@@ -304,7 +304,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:
@@ -363,7 +364,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
@@ -372,7 +373,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: