Created
April 4, 2019 13:47
-
-
Save WolfieZero/17f16d67a8c9afa3ff973d6a872fc7e0 to your computer and use it in GitHub Desktop.
NPM Version using git branch
This file contains 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
branch=`git rev-parse --abbrev-ref HEAD`; prerelease="npm version prerelease --preid ${branch//[\/]/-}"; eval $prerelease; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment