Skip to content

Commit

Permalink
chore: update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
mohnoor94 committed Sep 17, 2024
1 parent df04e4e commit dec1180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit dec1180

Please sign in to comment.