Skip to content

Commit

Permalink
ci: fixes release script (#288)
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Ribo Labrador <elribonazo@gmail.com>
Co-authored-by: Francisco Javier Ribo Labrador <elribonazo@gmail.com>
  • Loading branch information
2 people authored and curtis-h committed Sep 12, 2024
1 parent 7ac3c2d commit 4715781
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

1 comment on commit 4715781

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines Statements Branches Functions
Coverage: 75%
75.98% (2842/3740) 65.69% (1392/2119) 80.75% (730/904)

JUnit

Tests Skipped Failures Errors Time
527 6 💤 0 ❌ 0 🔥 56.055s ⏱️

Please sign in to comment.