From dec11804efb13419469f96dd5cdc38d75f531cf4 Mon Sep 17 00:00:00 2001 From: mohnoor94 Date: Tue, 17 Sep 2024 19:15:01 +0300 Subject: [PATCH] chore: update release action --- .github/workflows/release-sdk.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-sdk.yaml b/.github/workflows/release-sdk.yaml index c562996..2350ca2 100644 --- a/.github/workflows/release-sdk.yaml +++ b/.github/workflows/release-sdk.yaml @@ -29,7 +29,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | - curr_version="$(npm pkg get version | sed "s/\"//g")" + curr_version=$(npm pkg get version | jq -r '.version') if [ "${{ inputs.channel }}" == "production" ]; then echo "Publishing a production release: $curr_version" @@ -44,7 +44,7 @@ jobs: else version="$curr_version" fi - + echo "version: ||$version||" echo "Publishing a beta release: $version" npm version "$version" --allow-same-version