From a1feea80fede52d1b8b168ddd9d5b687af3105ae Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 2 Dec 2019 17:58:10 +0800 Subject: [PATCH] publish gh-pages after npm publish --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1f7faa4b0..bcdb0b4df 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "build": "father doc build --storybook", "compile": "father build && lessc assets/index.less assets/index.css && lessc assets/animation.less assets/animation.css && lessc assets/bordered.less assets/bordered.css", "gh-pages": "npm run build && father doc deploy", - "prepublishOnly": "npm run compile && np --no-cleanup --yolo --no-publish --any-branch && npm run gh-pages", + "prepublishOnly": "npm run compile && np --no-cleanup --yolo --no-publish --any-branch", + "postPublish": "npm run gh-pages", "lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md", "prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"", "test": "father test",