Skip to content

Commit e0e6568

Browse files
committed
update release process in MAINTAINERS.md
We want to fast-forward the `mochajs.org` branch _before_ running `npm publish` or people might look at out-of-date docs Signed-off-by: Christopher Hiller <[email protected]>
1 parent fc618a1 commit e0e6568

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

MAINTAINERS.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -347,16 +347,14 @@ _It's easier to release often._
347347
1. Push `master` to `origin` with your new tag; e.g. `git push origin master --tags`
348348
1. Copy & paste the `CHANGELOG.md` lines to a new GitHub "release". Save release as draft.
349349
1. Meanwhile, you can check [the build](https://travis-ci.org/mochajs/mocha) on Travis-CI and [AppVeyor](https://ci.appveyor.com/project/boneskull/mocha).
350-
1. Once the build is green, and you're satisfied with the release notes, open your draft release on GitHub, then click "publish."
350+
1. Once the build is green, you'll want to trigger an update of `mochajs.org`:
351+
1. _If you're doing a prerelease_, fast-forward the `next` branch to `master`, and push it. This updates [https://next.mochajs.org](https://next.mochajs.org). That's all.
352+
1. _If this is NOT a prerelease_, fast-forward the `mochajs.org` branch to `master` and push it. This updates [https://mochajs.org](https://mochajs.org).
353+
1. _If this is a "final" release_ (the first release of a major _after_ one or more prereleases) then remove the `next` tag from npm via `npm dist-tag rm next`.
354+
1. Finally, you're satisfied with the release notes, open your draft release on GitHub, then click "publish."
351355
1. Back in your working copy, run `npm publish`. _If you're doing a prerelease, ensure that you use `--tag=next`._
352356
1. Announce the update on Twitter or just tell your dog or something. New releases will be automatically tweeted by [@b0neskull](https://twitter.com/b0neskull) via a feed subscription to Mocha's "releases" page on GitHub.
353357

354-
In addition to above, you'll need to ensure the docs at [https://mochajs.org](https://mochajs.org) are updated:
355-
356-
1. _If you're doing a prerelease_, fast-forward the `next` branch to `master`, and push it. This updates [https://next.mochajs.org](https://next.mochajs.org). That's all.
357-
1. _If this is NOT a prerelease_, fast-forward the `mochajs.org` branch to `master` and push it. This updates [https://mochajs.org](https://mochajs.org).
358-
1. _If this is a "final" release_ (the first release of a major _after_ one or more prereleases) then remove the `next` tag from npm via `npm dist-tag rm next`.
359-
360358
_Note: there are too many steps above._
361359

362360
## About The JS Foundation

0 commit comments

Comments
 (0)