Skip to content

Commit 9127783

Browse files
committed
Adds postversion hook
- push commits after changing the version in package.json - only runs after using yarn version command
1 parent 5a15d99 commit 9127783

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
},
1616
"scripts": {
1717
"test": "npm run -s lint && ava 'test/**/*.test.js'",
18-
"lint": "eslint '**/*.js'"
18+
"lint": "eslint '**/*.js'",
19+
"postversion": "git push && git push --tags"
1920
},
2021
"devDependencies": {
2122
"ava": "^3.11.0",

0 commit comments

Comments
 (0)