Skip to content

GitLab CI build fails with No ancestor could be found between any of HEAD and master, origin/master, upstream/master, main, origin/main, upstream/main #200

@BryanHuntNV

Description

@BryanHuntNV

When running under GitLab CI, the plugin executes yarn version and I get the error:

No ancestor could be found between any of HEAD and master, origin/master, upstream/master, main, origin/main, upstream/main

I can run yarn version in the project just fine locally, but if I add that command to the GitLab CI job (and not use the plugin), I can reproduce the error. I suspect the problem is related to GitLab CI checking out the project in a detached head state.

I haven't been able to find a solution, so I may just write my own plugin that uses jq to update the package version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions