|
7 | 7 | "description": "Social server with an ActivityStreams API", |
8 | 8 | "devDependencies": { |
9 | 9 | "dependency-check": "^2.8.0", |
| 10 | + "gh-release": "^3.1.1", |
10 | 11 | "jscs": "^3.0.3", |
11 | 12 | "jshint": "^2.9.2", |
12 | 13 | "jsonlint": "^1.6.2", |
|
82 | 83 | "test:systemd": "docker run -v $(pwd):/tmp/pump.io:ro -v $NVM_DIR:/.nvm:ro ubuntu sh -c \"export NVM_DIR=$NVM_DIR; . $NVM_DIR/nvm.sh; nvm use $TRAVIS_NODE_VERSION; cd /tmp/pump.io; npm run test:systemd:run\"", |
83 | 84 | "test:systemd:run": "mkdir -p /tmp/pump.io/uploads; sed 's/%i.service//g' pump.io@.service | sudo tee /etc/systemd/system/pump.io.service; sudo systemctl daemon-reload; sudo systemctl start pump.io.service; npm run test:system", |
84 | 85 | "lint": "npm run lint:jshint && npm run lint:jscs && npm run lint:jade && npm run lint:json && npm run lint:deps", |
85 | | - "lint:deps": "dependency-check package.json test/*.js > /dev/null && dependency-check --unused package.json -i dependency-check -i jscs -i jshint -i jsonlint -i pug-lint test/*.js > /dev/null", |
| 86 | + "lint:deps": "dependency-check package.json test/*.js > /dev/null && dependency-check --unused package.json -i dependency-check -i jscs -i jshint -i jsonlint -i pug-lint -i gh-release test/*.js > /dev/null", |
86 | 87 | "lint:jshint": "jshint --exclude 'public/javascript/libs' bin/* lib routes public/javascript test", |
87 | 88 | "lint:jscs": "jscs bin/* lib public/javascript/pump* routes test", |
88 | 89 | "lint:jade": "pug-lint public/template/*.jade", |
|
95 | 96 | "prepublish": "npm run build", |
96 | 97 | "version": "npm run version:check-branch && npm run update-docs && git add README.md doc/", |
97 | 98 | "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", |
99 | 100 | "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 $(if npm run --silent util:is-beta; then printf -p; fi) -n $npm_package_version", |
100 | 102 | "util:is-beta": "echo $npm_package_version | grep beta > /dev/null" |
101 | 103 | }, |
102 | 104 | "repository": { |
|
0 commit comments