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. 如有必要,请在以下位置本地测试 main

    ¥If necessary, test main locally in the:

    1. stylelint/stylelint-config-recommended
    2. stylelint/stylelint-config-standard
    3. stylelint/stylelint.io
  4. 发布 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. 确认在 github.com/stylelint/stylelint/releases 创建版本。

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

  5. 如有必要,释放 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.

  6. 更新网站:

    ¥Update the website:

    1. 更改为 stylelint.io 存储库。

      ¥Change to the stylelint.io repository.

    2. 运行 npm install https://github.com/stylelint/stylelint/tarball/${new_version} --save-dev(将 ${new_version} 替换为版本号,例如 14.13.2)。

      ¥Run npm install https://github.com/stylelint/stylelint/tarball/${new_version} --save-dev (replacing ${new_version} with the version number e.g. 14.13.2).

    3. 运行 npm test

      ¥Run npm test.

    4. 提交这些更改。

      ¥Commit these changes.

    5. 推动这些改变。

      ¥Push these changes.

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

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

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

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

  8. 撰写一条推文:

    ¥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 release
- [ ] stylelint-config-recommended update/release
- [ ] stylelint-config-standard update/release
- [ ] stylelint.io update
- [ ] stylelint-demo check
- [ ] tweet