Skip to content

Commit 031347d

Browse files
committed
feat(template): push after publish
Run `git push` after `npm publish` for component template and assist-plugin template.
1 parent 207a7c7 commit 031347d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

template/assist-plugin/package.json.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"prepublishOnly": "npm test; npm run build",
1212
"ca": "git add -A && git-cz -av",
1313
"commit": "git-cz",
14+
"postpublish": "git push"
1415
},
1516
"engines": {
1617
"node": ">=8.9.4"

template/component/package.json.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"build": "npm run clean & rollup -c",
1313
"prepublishOnly": "npm test; npm run build",
1414
"ca": "git add -A && git-cz -av",
15-
"commit": "git-cz"
15+
"commit": "git-cz",
16+
"postpublish": "git push"
1617
},
1718
"engines": { "node": ">=8.9.4" },
1819
"mili": {

0 commit comments

Comments
 (0)