Skip to content

Commit 7966937

Browse files
committed
Add scripts to help create git tags
1 parent 9c91af7 commit 7966937

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bin/version

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env node
2+
3+
const package = require('../package.json');
4+
console.log(package.version);

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"ci": "DEBUG_MODE=none npm run build && jest --ci",
1515
"build": "rimraf dist && rollup -c",
1616
"test:watch": "npm run build && jest --watch",
17-
"test": "npm run build && jest --verbose"
17+
"test": "npm run build && jest --verbose",
18+
"tag": "git tag -f \"v$(bin/version)\""
1819
},
1920
"files": [
2021
"dist",

0 commit comments

Comments
 (0)