diff --git a/.github/ci-scripts/toggle-alpha.sh b/.github/ci-scripts/toggle-alpha.sh index cc0c22a..e51619c 100755 --- a/.github/ci-scripts/toggle-alpha.sh +++ b/.github/ci-scripts/toggle-alpha.sh @@ -5,8 +5,13 @@ current_version=$(node -p "require('./package.json').version") # Check if version contains alpha if [[ "$current_version" == *"-alpha"* ]]; then - # Remove alpha if present - new_version="${current_version%%-alpha*}" + if [[ "$1" != "yes" ]]; then + # Remove alpha if present and "yes" is not passed + new_version="${current_version%%-alpha*}" + else + # Keep the current version if "yes" is passed + new_version="${current_version}" + fi elif [[ "$1" == "yes" ]]; then # Add alpha if not present and "yes" was passed new_version="${current_version}-alpha" diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 57661aa..cde53ca 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -1,4 +1,4 @@ -name: Release and Versioning +name: Package version bump on: pull_request_review: types: [submitted] diff --git a/package.json b/package.json index 4968095..1437d4c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@centrifuge/sdk", - "version": "0.0.0-alpha.0", + "version": "0.0.0", "description": "", "homepage": "https://github.com/centrifuge/sdk/tree/main#readme", "author": "",