From 88645861ff302ff528c84f8ff1819d0792256ed5 Mon Sep 17 00:00:00 2001 From: "Anders D. Johnson" Date: Wed, 10 Aug 2016 22:52:55 -0500 Subject: [PATCH] chore: add publish-please --- .publishrc | 13 +++++++++++++ package.json | 5 ++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .publishrc diff --git a/.publishrc b/.publishrc new file mode 100644 index 0000000..e6d9ee8 --- /dev/null +++ b/.publishrc @@ -0,0 +1,13 @@ +{ + "validations": { + "vulnerableDependencies": true, + "uncommittedChanges": true, + "untrackedFiles": true, + "sensitiveData": true, + "branch": "master", + "gitTag": true + }, + "confirm": true, + "publishTag": "latest", + "prePublishScript": "npm test" +} \ No newline at end of file diff --git a/package.json b/package.json index 16856ac..89cf064 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,9 @@ "browser:src": "browserify src/index.js -o dist/src/index.browser.js -t babelify", "browser": "npm run browser:test && npm run browser:src", "node": "npm run node:test && npm run node:src", - "build": "npm run node && npm run browser" + "build": "npm run node && npm run browser", + "publish-please": "publish-please", + "prepublish": "publish-please guard" }, "config": { "ghooks": { @@ -56,6 +58,7 @@ "ghooks": "^1.2.4", "mocha": "^3.0.1", "npm-run-all": "^2.1.1", + "publish-please": "^2.2.0", "redux": "^3.0.5", "redux-thunk": "^1.0.3", "validate-commit-msg": "^2.6.1",