-
Notifications
You must be signed in to change notification settings - Fork 887
Release process
-
Bump the version number in
package.json
andsrc/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.txt
with "repo" permissions. Copy the information that the script generates to theCHANGELOG.md
and 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 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.