Skip to content

Commit

Permalink
Check-in tag-release script
Browse files Browse the repository at this point in the history
  • Loading branch information
ryu1kn committed Aug 9, 2018
1 parent 71b951d commit 076fed0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/.travis.yml
/.vscode
/coverage
/tag-release.sh
/test/.eslintrc.yaml
/test/integration
__*
9 changes: 9 additions & 0 deletions tag-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -euo pipefail

RELEASE_VER=$(node -p 'JSON.parse(require("fs").readFileSync("./package.json", "utf8")).version')

GIT_TAG_NAME=v$RELEASE_VER
git tag -a $GIT_TAG_NAME -m $GIT_TAG_NAME
git push origin $GIT_TAG_NAME

0 comments on commit 076fed0

Please sign in to comment.