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

How to support different variants of the same project #3125

Open
ZhaoXiangXML opened this issue Dec 29, 2023 · 0 comments
Open

How to support different variants of the same project #3125

ZhaoXiangXML opened this issue Dec 29, 2023 · 0 comments

Comments

@ZhaoXiangXML
Copy link

I'm working on a project which is used by multiple clients, they want different features and some of them has purchased the source code.

I can't just publish different binaries to them. I'd like to manage the release process with semantic-release.

Right now I've different branch for each client, they contains different commits but most commits are the same.

I've tried the channel setting, having two release branches with different channels, but it appears I can't release the second branch if it does not contain all commits of the first.

My (not working) branches setting looks like this:

"branches": [
    "+([0-9])?(.{+([0-9]),x}).x",
    "release",
    {
      "name": "beta",
      "prerelease": true
    },
    {
      "name": "alpha",
      "prerelease": true
    },
    {
      "name": "client-a-alpha",
      "channel": "client-a",
      "prerelease": true
    },
    {
      "name": "client-a-beta",
      "channel": "client-a",
      "prerelease": true
    },
    {
      "name": "client-a-release",
      "channel": "client-a"
    }
  ],
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

1 participant