Skip to content

Commit 653f231

Browse files
committed
Add yarn version lifecycle scripts
1 parent b99e199 commit 653f231

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
},
5151
"scripts": {
5252
"prepublish": "yarn test && tsc",
53+
"preversion": "yarn test && tsc",
54+
"postversion": "git push --tags && yarn publish . --tag $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\"",
5355
"test": "jest"
5456
},
5557
"husky": {

0 commit comments

Comments
 (0)