Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Dec 21, 2024
1 parent 7d3f5f8 commit f216408
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ jobs:
run: |
bash generate.sh
cd js
echo "release_created? ${{ steps.release.outputs.release_created }}"
if [ ! steps.release.outputs.release_created ]; then
if [ ! ${{ steps.release.outputs.release_created }} ]; then
# we'll update version for beta release
git_hash=$(git rev-parse --short "$GITHUB_SHA")
git_hash=$(git rev-parse --short "${{ GITHUB_SHA }}")
CURRENT_VERSION=$(node -p "require('./package.json').version")
NEW_VERSION="${CURRENT_VERSION}-${git_hash}"
echo "New version: ${NEW_VERSION}"
sed -i "s/${CURRENT_VERSION}/${NEW_VERSION}/" package.json
fi
Expand Down

0 comments on commit f216408

Please sign in to comment.