You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MAINTAINERS.md
+8-31Lines changed: 8 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -377,37 +377,14 @@ By using milestones, we can cherry-pick non-breaking changes into minor or patch
377
377
378
378
## Mocha's Release Process
379
379
380
-
_It's easier to release often._
381
-
382
-
1. Decide whether this is a `patch`, `minor`, or `major` release.
383
-
1. Checkout `main` in your working copy & pull.
384
-
1. Modify `CHANGELOG.md`; follow the existing conventions in that file.
385
-
Use the "pull request" number, unless there isn't one.
386
-
_You do not need to add Markdown links; this is done automatically._
387
-
1. You can omit stuff from `CHANGELOG.md` that was done by a maintainer, but would have no interest to consumers of Mocha.
388
-
1. If the changes aren't of interest to consumers but _were not_ made by a maintainer, reference them anyway.
389
-
It's cool to give attribution!
390
-
1. Use `npm version` (use `npm@8+`) to bump the version; see `npm version --help` for more info.
391
-
(Hint--use `-m`: e.g., `npm version patch -m 'Release v%s'`)
392
-
1. This command will update the list of authors (from the Git history) in `AUTHORS`, and add GitHub links to `CHANGELOG.md`.
393
-
1. These changes are then added to the Git "stage" and will be added to the commit.
394
-
1. Push `main` to `origin` with your new tag; e.g. `git push origin main --tags`
395
-
1. Copy & paste the `CHANGELOG.md` lines to a new GitHub "release".
396
-
Save release as draft.
397
-
1. Meanwhile, you can check [the build](https://travis-ci.org/mochajs/mocha) on Travis-CI and [GitHub Actions](https://github.com/mochajs/mocha/actions?query=workflow%3A%22Windows+CI%22).
398
-
1. Once the build is green, you'll want to trigger an update of `mochajs.org`:
399
-
1._If you're doing a prerelease_, fast-forward the `next` branch to `main`, and push it.
400
-
This updates [https://next.mochajs.org](https://next.mochajs.org).
401
-
That's all.
402
-
1._If this is NOT a prerelease_, fast-forward the `mochajs.org` branch to `main` and push it.
403
-
This updates [https://mochajs.org](https://mochajs.org).
404
-
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`.
405
-
1. Finally, you're satisfied with the release notes, open your draft release on GitHub, then click "publish."
406
-
1. Back in your working copy, run `npm publish`.
407
-
_If you're doing a prerelease, ensure that you use `--tag=next`._
408
-
1. Announce the update on Twitter or just tell your dog or something.
409
-
410
-
_Note: there are too many steps above._
380
+
Releases are managed by [release-please](https://github.com/googleapis/release-please) and require manual approval after tests pass.
381
+
To create a new release after merging changes, merge the _`chore(main): release...`_ pull request that its automation has created.
382
+
Doing so will:
383
+
384
+
1. Create a new GitHub release
385
+
2. Cause a CI job to run on `main` that will publish the package to npm
386
+
387
+
You'll then need to go to the `chore(main): release ...` commit _Publish to npm_ job run logs and click the _Review pending deployments_ link.
0 commit comments