3

When Im trying to use another release branch for trigger a release with semantic release. Semantic release is telling me

This test run was triggered on the branch jose, while semantic-release is configured to only publish from master, therefore a new version won’t be published.`

Is there any way to set up another release branch?

This is my release.config.js file

  release: {
    branches: ['jose']
  },
  dryRun: false,
  plugins: [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/changelog",
    "@semantic-release/github",
    ["@semantic-release/git", {
                "message": "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}"
    }],
    ["semantic-release-slack-bot", {
      "notifyOnSuccess": true,
      "notifyOnFail": true,
      "onSuccessTemplate": {
        "text": "A new version of $package_name with version $npm_package_version has been released at $repo_url!"
      }
    }]
  ]
}
Chekuda
  • 31
  • 1
  • 2

2 Answers2

3

I had a similar problem, in my case the branch exists only locally not on the remote repo. Take a look at this github issue

admir86
  • 368
  • 1
  • 3
  • 13
1

Try to run:

npx semantic-release --branches jose
hY8vVpf3tyR57Xib
  • 3,574
  • 8
  • 41
  • 86