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