Skip to content

Commit

Permalink
ci: fixes release script
Browse files Browse the repository at this point in the history
Signed-off-by: Allain Magyar <[email protected]>
  • Loading branch information
amagyar-iohk committed Sep 11, 2024
1 parent 7ac3c2d commit 0f14e41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ npm version "$release_version" --git-tag-version false
npm run build

# Gets the published versions in the registry
published_versions=$(echo "$(npm view @hyperledger/identus-edge-agent-sdk versions)" | tr -d " '")
version_list=$(npm view @hyperledger/identus-edge-agent-sdk versions)
published_versions=${version_list//[\[\]]/}

# Checks if it's been already published to npmjs
if [[ $published_versions == *$release_version* ]]; then
if [[ ${published_versions[@]} =~ "'$release_version'" ]]; then
# The goal of this case is to enable the generation of semantic-release
# commits despite of the current version is already published.
# Usually this is due some error during the pipeline execution.
Expand Down

0 comments on commit 0f14e41

Please sign in to comment.