Skip to content

Commit

Permalink
Check in the script to tag a release
Browse files Browse the repository at this point in the history
  • Loading branch information
ryu1kn committed Apr 2, 2018
1 parent b2906a1 commit ab9be1f
Showing 1 changed file with 9 additions and 0 deletions.
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 ab9be1f

Please sign in to comment.