Skip to content

Commit c1391a4

Browse files
nzakasantleblanc
andauthored
Docs: Update README to reflect reality (fixes #36) (#49)
* Docs: Update README to reflect reality (fixes #36) * Update README.md Co-authored-by: Antoine Leblanc <[email protected]> Co-authored-by: Antoine Leblanc <[email protected]>
1 parent 86af6a8 commit c1391a4

File tree

1 file changed

+20
-35
lines changed

1 file changed

+20
-35
lines changed

README.md

Lines changed: 20 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -18,52 +18,43 @@ You can install the ESLint release tool using [npm](https://npmjs.com):
1818
$ npm install eslint-release --save-dev
1919
```
2020

21-
## Local Usage
21+
## Usage
2222

23-
The ESLint release tool is designed to be used on the command line and has two modes: regular release and prerelease.
23+
To start, you'll need to define two environment variables:
2424

25-
To run a regular release:
25+
* `NPM_TOKEN` - a token to use for `npm publish`. The token must be from a user that has permission to publish the package.
26+
* `ESLINT_GITHUB_TOKEN` - a token for a GitHub user that has `repo` permission (used for posting release notes).
2627

27-
```
28-
$ eslint-release
29-
```
28+
The ESLint release tool is designed to be used on the command line and is divided into two phases: package generation and package publishing.
3029

31-
To run a prerelease, you need to include the prerelease identifier:
30+
To generate a regular release:
3231

3332
```
34-
$ eslint-prerelease alpha
33+
$ eslint-generate-release
3534
```
3635

37-
You can optionally include the release tool in another Node.js script:
36+
To generate a prerelease, you need to include the prerelease identifier:
3837

39-
```js
40-
var ReleaseOps = require("eslint-release");
38+
```
39+
$ eslint-generate-prerelease alpha
4140
```
4241

43-
## CI Usage
44-
45-
When run in a CI environment like Jenkins, the ESLint release tool has different commands that allow for incorporation into more complex release scripts. To start, you'll need to define two environment variables:
46-
47-
* `NPM_TOKEN` - a token to use for `npm publish`. The token must be from a user that has permission to publish the package.
48-
* `ESLINT_GITHUB_TOKEN` - a token for a GitHub user that has `repo` permission (used for posting release notes).
42+
Both `eslint-generate-release` and `eslint-generate-prerelease` generate a new version and update the changelog but will not push back to GitHub or publish to npm. It will generate an npm package and a `.eslint-release-info.json` file.
4943

50-
To run a release in a CI environment:
44+
For both releases and prereleases, you can then publish the release:
5145

5246
```
53-
$ eslint-ci-release
47+
$ eslint-publish-release
5448
```
5549

56-
This will generate a new version, update the changelog, and publish to npm but will not push back to GitHub. It will also generate a `.releaseInfo.json` file.
57-
58-
Your CI system must manually push the repository changes to GitHub (including the version tag). After that, you can publish release notes by running:
50+
This command publishes the generate npm package and pushes the changes to GitHub. The `.eslint-release-info.json` file is required for this step to work correctly.
5951

60-
```
61-
$ eslint-gh-release
62-
```
6352

64-
This command looks for the `.releaseInfo.json` file and uses that information to determine where to post release notes and what to post.
53+
You can optionally include the release tool in another Node.js script:
6554

66-
**Note:** In Jenkins, `eslint-gh-release` must be run as the last step in the build (typically in a post-build script that occurs after the GitHub repository has been updated).
55+
```js
56+
var ReleaseOps = require("eslint-release");
57+
```
6758

6859
## What It Does
6960

@@ -82,23 +73,17 @@ When you run the release tool for a regular release, the following steps take pl
8273

8374
When you do a prerelease, the same steps are taken except that package is published to npm under the `next` tag instead of `latest`.
8475

85-
## Team
86-
87-
These folks keep the project moving and are resources for help:
88-
89-
* Nicholas C. Zakas ([@nzakas](https://github.com/nzakas)) - project lead
90-
9176
## Contributing
9277

93-
Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/eslint-release/issues).
78+
Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](https://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/eslint-release/issues).
9479

9580
### License
9681

9782
MIT License
9883

9984
### Where to ask for help?
10085

101-
Join our [Chatroom](https://gitter.im/eslint/eslint)
86+
Join our [Chatroom](https://eslint.org/chat/help)
10287

10388
[npm-image]: https://img.shields.io/npm/v/eslint-release.svg?style=flat-square
10489
[npm-url]: https://www.npmjs.com/package/eslint-release

0 commit comments

Comments
 (0)