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. 触发 release-pr 工作流以创建发布 PR。

      ¥Trigger the release-pr workflow to create a release PR.

    2. 在变更日志中添加变更摘要,包括是否有新的标准配置。

      ¥Add a summary to the changelog about what's changed, including if there's a new standard config.

    3. 如有必要,请重新排序变更日志条目,以便影响范围最广的变更优先显示。

      ¥If necessary, reorder the changelog entries so that the widest-reaching changes come first.

    4. 合并 PR 以启动 release 工作流。

      ¥Merge the PR to start the release workflow.

    5. 批准待发布的作业以发布到 npm,并创建 GitHub 版本草稿。

      ¥Approve the pending release job to publish to npm and create a draft GitHub release.

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

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

    7. 审阅并发布 GitHub 版本草稿。

      ¥Review and publish the draft GitHub release.

  6. 如有必要,请使用相同的步骤发布 stylelint-config-*

    ¥If necessary, release stylelint-config-* using the same steps.

  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.

新发布问题模板

¥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