Skip to content

Instantly share code, notes, and snippets.

@jottenlips
Last active July 15, 2019 17:16
Show Gist options
  • Save jottenlips/6c3c0f20e9e3382544a81c1c38af6ac2 to your computer and use it in GitHub Desktop.
Save jottenlips/6c3c0f20e9e3382544a81c1c38af6ac2 to your computer and use it in GitHub Desktop.
PACKAGE_VERSION=$(cat package.json | grep '"version":' | awk -F: '{ print $2 }' | sed 's/[",]//g' | sed 's/[ ,]//g')
@jottenlips
Copy link
Author

useful for git tagging releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment