Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit d6b0c74

Browse files
author
Kent C. Dodds
committed
chore(build): Use open sourced publish-latest now
1 parent 713a9bc commit d6b0c74

File tree

2 files changed

+5
-37
lines changed

2 files changed

+5
-37
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@
3838
"report-coverage": "cat ./coverage/lcov.info | node_modules/.bin/codecov",
3939
"code-checks": "eslint src/",
4040
"commit": "git-cz",
41-
"publish:latest": "with-package scripts/publish-latest.sh pkg.version",
42-
"semantic-release": "semantic-release pre && npm run build && npm publish && npm run publish:latest && semantic-release post"
41+
"prepublish": "npm run build",
42+
"postpublish": "publish-latest --user-email [email protected] --user-name formly-bot",
43+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
4344
},
4445
"betterScripts": {
4546
"build:dist": {
@@ -83,7 +84,7 @@
8384
},
8485
"config": {
8586
"ghooks": {
86-
"commit-msg": "./node_modules/.bin/validate-commit-msg && npm run code-checks && npm run test && npm run check-coverage"
87+
"commit-msg": "./node_modules/.bin/validate-commit-msg && npm run code-checks && npm t && npm run check-coverage"
8788
}
8889
},
8990
"description": "AngularJS directive which takes JSON representing a form and renders to HTML",
@@ -127,6 +128,7 @@
127128
"ng-annotate": "1.0.2",
128129
"ng-annotate-loader": "0.0.10",
129130
"node-libs-browser": "0.5.2",
131+
"publish-latest": "1.0.2",
130132
"raw-loader": "0.5.1",
131133
"semantic-release": "^4.3.4",
132134
"sinon": "1.16.1",

scripts/publish-latest.sh

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)