Skip to content

Commit

Permalink
add version from package.json to command
Browse files Browse the repository at this point in the history
  • Loading branch information
htrinter committed Nov 27, 2023
1 parent 6c9352c commit 7e5cd07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tag-release.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/zsh
git tag v$1 -m "release version $1" && git push origin v$1
RELEASE_VERSION=$(node -p "require('./package.json').version")
git tag v"$RELEASE_VERSION" -m "release version $RELEASE_VERSION" && git push origin v"$RELEASE_VERSION"

0 comments on commit 7e5cd07

Please sign in to comment.