Skip to content

Commit

Permalink
update package.json with tag as version
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Apr 13, 2024
1 parent fbc2196 commit c50b9d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build-javascript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ npx protoc --ts_out build/javascript \

cp -Rvf npm/* build/javascript/
cd build/javascript

TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
if [[ -n "$TAG" ]]; then
TAG=${TAG#v}
sed -i "s/\"version\": \".*\"/\"version\": \"$TAG\"/g" package.json
fi

node generate_imports.cjs

npm run build
Expand Down

0 comments on commit c50b9d5

Please sign in to comment.