Performing releases
- Create a new issue announcing the planned release, e.g.
Release 8.11.1
and include the template checklist. - Locally test
main
in thestylelint-config-*
shareable config repositories. Install the currentmain
branch (npm install stylelint/stylelint#main --save-dev
) and run tests. - Locally test
main
in the stylelint/stylelint-demo repository. - Locally test
main
in the stylelint/stylelint.io repository. - Publish the package to npm and create a GitHub release using
np
:- Consistently format the changelog.
- Replace
## Head
with new version number e.g.## 8.1.2
. - Commit these changes.
- Push these changes.
- Confirm the changes are correct at github.com/stylelint/stylelint.
- Run
npm run release
. - Select the version that matches the one from the changelog.
- Copy and paste the changelog entries for the published version from changelog when the GitHub release page opens.
- Confirm the publishing of the package to www.npmjs.com/package/stylelint.
- Confirm the creation of the release at github.com/stylelint/stylelint/releases.
- If a new version of any
stylelint-config-*
is required, repeat step 5 for that repository. - Update the online demo by changing to the
stylelint-demo
repository:- Run
npm install stylelint@latest --save
. - Run
npm test
. - Commit these changes.
- Push these changes.
- Confirm the deployment of the update to stylelint.io/demo.
- Run
- Update the website documentation by changing to the
stylelint.io
repository:- Run
npm install https://github.com/stylelint/stylelint/tarball/${new_version} --save-dev
. (assuming${new_version}
is the actual version number e.g.8.1.2
) - Run
npm test
. - Commit these changes.
- Push these changes.
- Confirm the deployment of the update to stylelint.io.
- Run
- Compose a tweet that:
- announces the release
- communicates what has changed
- links to the appropriate heading in the changelog on stylelint.io.
New release issue template
- [ ] stylelint release
- [ ] stylelint-config-recommended update/release
- [ ] stylelint-config-standard update/release
- [ ] stylelint-demo update
- [ ] stylelint.io update
- [ ] tweet