Created
August 8, 2016 12:52
-
-
Save sixertoy/b3e0766d010aeb3cccb9b19e571c9567 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using Bash | |
VERSION=$(npm version patch) | |
VERSION=$(echo $VERSION | cut -c 2-) | |
# Using NodeJS | |
PACKAGE_VERSION=$(node -p -e "require('./package.json').version") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment