-
Notifications
You must be signed in to change notification settings - Fork 884
Release process
-
Bump the version number in
package.jsonandsrc/linter.ts. -
Run
node ./scripts/generate-changelog.js(after building it withtsc -p scripts) to generate the changelog diff. This script expects a Github.com personal access token to exist at~/github_token.txtwith "repo" permissions. Copy the information that the script generates to theCHANGELOG.mdfile and clean it up / do some copy editing. -
Commit with message
Prepare release <version>. -
Push your branch (for example, named `ad/prep-5.15.0') to GitHub and make a PR.
-
Once your PR is merged, wait for the tests to pass on CircleCI for
master. -
Create a "Release" on GitHub with the proper tag version and notes from
CHANGELOG.md. The tag should be identical to the version inpackage.json. -
Run
yarn run publish:local. TheNew versionprompted by the publish script should be the same release version you have been using everywhere else.
-
Pull master locally (your directory should be called
tslint) -
As a sibling to tslint, clone it again (call it
tslint-gh-pages) and check out thegh-pagesbranch.Shortcut:
git worktree add -b gh-pages ../tslint-gh-pages origin/gh-pages -
Run
yarn compile && yarn docsin thetslintdirectory. -
Checkout a new branch (in the
tslint-gh-pagesdirectory) based ongh-pages. -
Copy
tslint/docs/*totslint-gh-pages -
Commit your changes to
tslint-gh-pagesand create a PR. -
Once the PR is merged, the docs should be released automatically.