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

Drone CI publish from tag not working because branch is undefined #2445

Open
MauriceNino opened this issue May 27, 2022 · 0 comments
Open

Drone CI publish from tag not working because branch is undefined #2445

MauriceNino opened this issue May 27, 2022 · 0 comments

Comments

@MauriceNino
Copy link

Current behavior

No matter what I set for branches, when I release from a tag, I always get the following error:

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

My pipeline step looks like this:

  - name: create release notes
    image: timbru31/node-alpine-git:latest
    when:
      event: tag
    environment:
      GITHUB_TOKEN:
        from_secret: GITHUB_TOKEN
    commands:
      - yarn --immutable --immutable-cache
      - yarn semantic-release

My config:

{
  "branches": ["*"],
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    "@semantic-release/github"
  ]
}

Expected behavior

I would expect a release from a tag to run as well, if I specified the branch as *.

Environment

  • semantic-release version: 19.0.2
  • CI environment: Drone
  • Plugins used: ["@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/github"]
  • semantic-release configuration: commit
  • CI logs: logs
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