Skip to main content

执行发布

¥Performing releases

  1. 创建 新问题 来宣布计划发布:

    ¥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

  2. 如有必要,请打开拉取请求以在 docs/user-guide/rules.md 中标记这些规则。

    ¥If necessary, open a pull request to mark those rules in docs/user-guide/rules.md.

  3. 检查 stylelint/stylelint-ecosystem-tester 中的包测试是否在新版本中失败。

    ¥Check if package tests in stylelint/stylelint-ecosystem-tester fail with the new version.

  4. 如有必要,请在本地测试主分支:

    ¥If necessary, test the main branch locally against:

    1. stylelint/stylelint-config-recommended
    2. stylelint/stylelint-config-standard
    3. stylelint/stylelint.io
  5. 发布 Stylelint:

    ¥Release Stylelint:

    1. 如有必要,请对 "准备 x.y.z" 拉取请求中的变更日志条目重新排序,以便影响最广泛的变更排在第一位。

      ¥If necessary, reorder the changelog entries in the "Prepare x.y.z" pull request so that the widest-reaching changes come first.

    2. 合并 "准备 x.y.z" 拉取请求。

      ¥Merge the "Prepare x.y.z" pull request.

    3. stylelint 存储库中打开终端窗口。

      ¥Open a terminal window in the stylelint repository.

    4. 运行 npm run release

      ¥Run npm run release.

    5. np 提示中选择与更改日志中的版本匹配的版本。

      ¥Select the version from the np prompt that matches the one in the changelog.

    6. 确认将包发布到 www.npmjs.com/package/stylelint

      ¥Confirm the publishing of the package to www.npmjs.com/package/stylelint.

    7. 确认在 stylelint/stylelint/releases 创建版本。

      ¥Confirm the creation of the release at stylelint/stylelint/releases.

  6. 如有必要,释放 stylelint-config-*

    ¥If necessary, release stylelint-config-*:

    1. 更改为 stylelint-config-* 存储库。

      ¥Change to the stylelint-config-* repository.

    2. 对该存储库重复上述步骤 5 到 8。

      ¥Repeat steps 5 to 8 above for that repository.

  7. 更新网站:

    ¥Update the website:

    1. 转到 stylelint.io 存储库中的 发布操作页面

      ¥Go to the releasing action page in the stylelint.io repository.

    2. 单击运行工作流程。

      ¥Click Run workflow.

    3. 检查并合并由操作创建的拉取请求。

      ¥Check and merge a pull request created by the action.

    4. 确认部署更新至 stylelint.io

      ¥Confirm the deployment of the update to stylelint.io.

  8. 检查 stylelint.io/demo 是否安装了最新的 Stylelint 和配置版本。

    ¥Check that stylelint.io/demo installs the latest Stylelint and config versions.

  9. 撰写一条推文:

    ¥Compose a tweet that:

    • 宣布发布

      ¥announces the release

    • 传达发生的变化

      ¥communicates what has changed

    • 链接到 stylelint.io 变更日志中的相应标题

      ¥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