Skip to content

Commit 99c0719

Browse files
authored
Small fix on SDK Publish versions (#190)
This pull request includes a small but important change to the deployment script for the JavaScript SDK. The modification ensures that the `CURRENT_VERSION` is correctly set even if the retrieved version is `null`. * [`.github/actions/core-cicd/deployment/deploy-javascript-sdk/action.yml`](diffhunk://#diff-b47e2bc3507c79547b7f53206919f60585f49479fa09c01ee9ab15eb6bb4c068L74-R74): Updated the condition to check if `CURRENT_VERSION` is `null` and set it to `0.0.1-beta.0` if true.
1 parent bed24f3 commit 99c0719

File tree

1 file changed

+1
-1
lines changed
  • .github/actions/core-cicd/deployment/deploy-javascript-sdk

1 file changed

+1
-1
lines changed

.github/actions/core-cicd/deployment/deploy-javascript-sdk/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ runs:
7171
# This should be empty on the first run. Setting the NEXT_VERSION to 0.0.1-beta.1
7272
CURRENT_VERSION=$(npm view @dotcms/client dist-tags --json | jq -r '.beta')
7373
74-
if [ -z "$CURRENT_VERSION" ]; then
74+
if [ -z "$CURRENT_VERSION" ] || [ "$CURRENT_VERSION" = "null" ]; then
7575
CURRENT_VERSION="0.0.1-beta.0"
7676
fi
7777

0 commit comments

Comments
 (0)