From 37fdfa1d166774ba00aaa801c6f4da908a80382c Mon Sep 17 00:00:00 2001 From: yuhanas yulianto Date: Tue, 28 Jul 2020 15:01:35 +0700 Subject: [PATCH] automate versioning and publishing to npm --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 2f797a6..a79e998 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "module": "dist/json-reactform.esm.js", "scripts": { "build": "preconstruct build", + "preversion": "git stash; git checkout master; git pull origin master", + "postversion": "yarn release", + "postpublish": "git push origin --all; git push origin --tags", "release": "yarn build && yarn publish", "format": "prettier --write ./**/*" },