Skip to content

Commit 076fed0

Browse files
committed
Check-in tag-release script
1 parent 71b951d commit 076fed0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/.travis.yml
1010
/.vscode
1111
/coverage
12+
/tag-release.sh
1213
/test/.eslintrc.yaml
1314
/test/integration
1415
__*

tag-release.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
RELEASE_VER=$(node -p 'JSON.parse(require("fs").readFileSync("./package.json", "utf8")).version')
6+
7+
GIT_TAG_NAME=v$RELEASE_VER
8+
git tag -a $GIT_TAG_NAME -m $GIT_TAG_NAME
9+
git push origin $GIT_TAG_NAME

0 commit comments

Comments
 (0)