Performing releases
- Create a new issue to announce the planned release:
- include the template checklist
- if applicable, list any new rules so that we can discuss including them in our configs
- If necessary, open a pull request to mark those rules in
docs/user-guide/rules.md
. - Check if package tests in stylelint/stylelint-ecosystem-tester fail with the new version.
- If necessary, test the main branch locally against:
- Release Stylelint:
- If necessary, reorder the changelog entries in the "Prepare x.y.z" pull request so that the widest-reaching changes come first.
- Merge the "Prepare x.y.z" pull request.
- Open a terminal window in the
stylelint
repository. - Run
npm run release
. - Select the version from the
np
prompt that matches the one in the changelog. - Confirm the publishing of the package to www.npmjs.com/package/stylelint.
- Confirm the creation of the release at stylelint/stylelint/releases.
- If necessary, release
stylelint-config-*
:- Change to the
stylelint-config-*
repository. - Repeat steps 5 to 8 above for that repository.
- Change to the
- Update the website:
- Go to the releasing action page in the
stylelint.io
repository. - Click Run workflow.
- Check and merge a pull request created by the action.
- Confirm the deployment of the update to stylelint.io.
- Go to the releasing action page in the
- Check that stylelint.io/demo installs the latest Stylelint and config versions.
- 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-ecosystem-tester check
- [ ] stylelint release
- [ ] stylelint-config-recommended update/release
- [ ] stylelint-config-standard update/release
- [ ] stylelint.io update
- [ ] stylelint-demo check
- [ ] tweet