Skip to content

Commit 7b63874

Browse files
committed
Add publish-please
1 parent c90fbe9 commit 7b63874

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.publishrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"validations": {
3+
"vulnerableDependencies": true,
4+
"uncommittedChanges": true,
5+
"untrackedFiles": true,
6+
"sensitiveData": true,
7+
"branch": "master",
8+
"gitTag": true
9+
},
10+
"confirm": true,
11+
"publishTag": "latest",
12+
"prePublishScript": "npm test"
13+
}

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"eslint-plugin-promise": "^2.0.1",
1616
"eslint-plugin-standard": "^2.0.0",
1717
"istanbul": "^0.4.5",
18-
"mocha": "^3.0.0"
18+
"mocha": "^3.0.0",
19+
"publish-please": "^2.2.0"
1920
},
2021
"engines": {
2122
"node": ">=4"
@@ -35,6 +36,8 @@
3536
"test": "npm run lint && mocha",
3637
"lint": "eslint .",
3738
"coverage": "istanbul cover --print both ./node_modules/mocha/bin/_mocha",
38-
"coveralls": "cat ./coverage/lcov.info | \"./node_modules/.bin/coveralls\""
39+
"coveralls": "cat ./coverage/lcov.info | \"./node_modules/.bin/coveralls\"",
40+
"publish-please": "publish-please",
41+
"prepublish": "publish-please guard"
3942
}
4043
}

0 commit comments

Comments
 (0)