-
Notifications
You must be signed in to change notification settings - Fork 872
Release process
-
Bump the version number in
package.jsonandsrc/linter.ts -
Use
./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.mdand edit it so that it is in the correct format. -
Commit with message Prepare
release <version>. -
Push your branch to GitHub and make a PR.
-
Once your PR is merged, wait for the tests to pass on CircleCI for
develop. -
Create a "Release" on GitHub with the proper tag version and notes from the changelog (copy them). The tag should be identical to the version in
package.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.