Skip to content

Instantly share code, notes, and snippets.

@sava-vidakovic
Created May 29, 2018 18:52
Show Gist options
  • Save sava-vidakovic/cb5361206aefab122f7ea27a465014d5 to your computer and use it in GitHub Desktop.
Save sava-vidakovic/cb5361206aefab122f7ea27a465014d5 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print €1.73 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
git commit -a -m "v$PACKAGE_VERSION"
git tag -a "v$PACKAGE_VERSION" -m "v$PACKAGE_VERSION"
git push && git push --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment