-
Notifications
You must be signed in to change notification settings - Fork 889
Release process
-
Bump the version number in
package.json
andsrc/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.txt
with "repo" permissions. Copy the information that the script generates to theCHANGELOG.md
file 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 version
prompted 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-pages
branch.Shortcut:
git worktree add -b gh-pages ../tslint-gh-pages origin/gh-pages
-
Run
yarn compile && yarn docs
in thetslint
directory. -
Checkout a new branch (in the
tslint-gh-pages
directory) based ongh-pages
. -
Copy
tslint/docs/*
totslint-gh-pages
-
Commit your changes to
tslint-gh-pages
and create a PR. -
Once the PR is merged, the docs should be released automatically.