From 3b2a92313e0214b4867cef0cee37f88ed24f968a Mon Sep 17 00:00:00 2001 From: AJ Jordan Date: Fri, 1 Sep 2017 15:30:04 -0400 Subject: [PATCH] Add WIP automation of GitHub Releases --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index db399c133..ad08ce29e 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "description": "Social server with an ActivityStreams API", "devDependencies": { "dependency-check": "^2.8.0", + "gh-release": "^3.1.1", "jscs": "^3.0.3", "jshint": "^2.9.2", "jsonlint": "^1.6.2", @@ -95,8 +96,9 @@ "prepublish": "npm run build", "version": "npm run version:check-branch && npm run update-docs && git add README.md doc/", "version:check-branch": "if [ \"$(git symbolic-ref HEAD)\" = refs/heads/master ]; then echo 'refusing to run `npm version` on master; bump package.json manually' 1>&2; exit 1; fi", - "postversion": "npm run postversion:push", + "postversion": "npm run postversion:push && npm run postversion:release", "postversion:push": "git push origin v$npm_package_version && npm run --silent util:is-beta || git push --set-upstream origin $(git symbolic-ref --short HEAD)", + "postversion:release": "gh-release $(if npm run --silent util:is-beta; then printf -p; fi) -n $npm_package_version", "util:is-beta": "echo $npm_package_version | grep beta > /dev/null" }, "repository": {