diff --git a/ghost/portal/package.json b/ghost/portal/package.json index 213d55a1ca..0ee3f441df 100644 --- a/ghost/portal/package.json +++ b/ghost/portal/package.json @@ -31,7 +31,8 @@ "test": "react-scripts test", "eject": "react-scripts eject", "lint": "eslint src --ext .js --cache", - "ship": "npm publish", + "preship": "yarn lint", + "ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push ${GHOST_UPSTREAM:-upstream} master --follow-tags; fi", "posttest": "yarn lint", "prepublishOnly": "yarn build" },