Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 pnpm + changesets 作为 version 和 publish 方案 #1386

Closed
xiaoiver opened this issue Jun 28, 2023 · 1 comment
Closed

使用 pnpm + changesets 作为 version 和 publish 方案 #1386

xiaoiver opened this issue Jun 28, 2023 · 1 comment

Comments

@xiaoiver
Copy link
Contributor

xiaoiver commented Jun 28, 2023

pnpm + semantic-release 在 monorepo 中使用时存在以下问题:

而 changesets 是 pnpm 官方推荐的 version + changelog 生成方案:
https://pnpm.io/using-changesets

因此新的发布方案如下:

  1. 基于主分支(目前是 next 分支)切一个 release 分支作为开发分支
  2. 每个开发者基于 release 分支切一个新分支完成他的功能,Code Review 通过以后,先合并到 release 分支
  3. 整体测试完成以后,release 分支再合并到主分支,永远保证主分支的代码是足够稳定的
@pomelo-nwu
Copy link
Member

@Aarebecca G6 和 G6VP 都可以参考下~

@xiaoiver xiaoiver closed this as completed Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants