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
feat: Support updates to previous major versions (#62)
* feat: Support updates to previous major versions
* store markdown changelog in `.eslint-release-info.json`
* update README
* add Node.js 20 and 22 to ci matrix
* add Node.js 18
Co-authored-by: Francesco Trotta <[email protected]>
---------
Co-authored-by: Francesco Trotta <[email protected]>
Copy file name to clipboardexpand all lines: README.md
+41-2
Original file line number
Diff line number
Diff line change
@@ -66,12 +66,51 @@ When you run the release tool for a regular release, the following steps take pl
66
66
1. Calculates the next release version based on the [commit message format](http://eslint.org/docs/developer-guide/contributing/pull-requests#step-2-make-your-changes) of the changes since the last release
67
67
1. Updates `CHANGELOG.md` and commits the changes
68
68
1. Runs `npm version` to update the version
69
-
1. Pushes the repository to origin/master with tags (only outside of CI release)
69
+
1. Pushes the current branch to origin, with tags
70
+
1. Creates GitHub release marked as Latest
70
71
1. Converts all line endings to Unix style
71
72
1. Publishes the package to npm
72
73
1. Reverts any file changes
73
74
74
-
When you do a prerelease, the same steps are taken except that package is published to npm under the `next` tag instead of `latest`.
75
+
When you do a prerelease, the same steps are taken except that package is published to npm under the `next` tag instead of `latest`, and the GitHub release is marked as Pre-release.
76
+
77
+
## API Usage
78
+
79
+
This package exports two functions:
80
+
81
+
*`generateRelease(prereleaseId, packageTag)` - This corresponds to the CLI command `eslint-generate-release` when `prereleaseId` is `undefined`, and the CLI command `eslint-generate-prerelease prereleaseId` when `prereleaseId` is a string value.
82
+
*`publishRelease()` - This corresponds to the CLI command `eslint-publish-release`.
83
+
84
+
`packageTag` is used as the `--tag` value in the `npm publish` command. It's also used to determine whether a regular release will be marked as Latest on GitHub: it will be marked as Latest only if `packageTag` is `"latest"`. This parameter is optional and defaults to `"latest"` when `prereleaseId` is `undefined`, `"next"` otherwise.
0 commit comments