Skip to content

Commit

Permalink
fix(ci): use npm version
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Dec 21, 2024
1 parent 9402b78 commit 242cfa7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ jobs:
if [ ! ${{ steps.release.outputs.release_created }} ]; then
# we'll update version for beta release
git_hash=$(git rev-parse --short "$GITHUB_SHA")
CURRENT_VERSION=$(node -p "require('./package.json').version")
NEXT_VERSION=$(echo ${CURRENT_VERSION} | awk -F. -v OFS=. '{$NF += 1 ; print}')
NEXT_VERSION=$(echo $(node -p "require('./package.json').version") | awk -F. -v OFS=. '{$NF += 1 ; print}')
BETA_VERSION="${NEXT_VERSION}-${git_hash}"
echo "New beta version for NPM: ${BETA_VERSION}"
sed -i "s/${CURRENT_VERSION}/${BETA_VERSION}/" package.json
npm version ${BETA_VERSION}
fi
bash generate.sh
Expand Down

0 comments on commit 242cfa7

Please sign in to comment.