Skip to content

Commit 45ef7aa

Browse files
committed
Add WIP automation of GitHub Releases
1 parent 2f9224c commit 45ef7aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"description": "Social server with an ActivityStreams API",
88
"devDependencies": {
99
"dependency-check": "^2.8.0",
10+
"gh-release": "^3.1.1",
1011
"jscs": "^3.0.3",
1112
"jshint": "^2.9.2",
1213
"jsonlint": "^1.6.2",
@@ -95,8 +96,9 @@
9596
"prepublish": "npm run build",
9697
"version": "npm run version:check-branch && npm run update-docs && git add README.md doc/",
9798
"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",
98-
"postversion": "npm run postversion:push",
99+
"postversion": "npm run postversion:push && npm run postversion:release",
99100
"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)",
101+
"postversion:release": "gh-release -n $npm_package_version",
100102
"util:is-beta": "echo $npm_package_version | grep beta > /dev/null"
101103
},
102104
"repository": {

0 commit comments

Comments
 (0)