diff --git a/package.json b/package.json index f0d0a9e6869..a282608ca52 100644 --- a/package.json +++ b/package.json @@ -77,6 +77,8 @@ "install-browser": "npm install `node format_deps.js`", "lint": "eslint . --quiet", "nsp": "nsp check", + "release": "git push origin master --tags && npm publish", + "release-legacy": "git push origin 4.x --tags && npm publish --tag 4.x", "test": "mocha test/*.test.js test/**/*.test.js", "test-cov": "istanbul cover --report text --report html _mocha test/*.test.js" }, diff --git a/release-items.md b/release-items.md index 3de407d03af..12ab9a5daca 100644 --- a/release-items.md +++ b/release-items.md @@ -5,7 +5,7 @@ 3. update History.md using `git changelog` or similar. Add # as well as a link to the github user who fixed it if applicable. 4. git commit -a -m 'release x.x.x' 5. git tag x.x.x -6. git push origin BRANCH --tags && npm publish +6. `npm run release`, or `npm run release-legacy` for 4.x 7. update mongoosejs.com (see "updating the website" below) 8. tweet changelog link from [@mongoosejs](https://twitter.com/mongoosejs) 9. Announce on mongoosejsteam slack channel