Skip to content

yarn version $TAG Can I turn off the check for the git repository? #6860

@silky1313

Description

@silky1313

My error

In our CI/CD,When you push a tag, the repository pulled by the pipeline only has the blobs related to the tag,It will execute the following command.

git fetch -v --progress --force --no-recurse-submodules --refmap=+refs/tags/*:refs/tags/* origin "refs/tags/7.0.0"

So when I execute the following command

yarn version $TAG

It will have the following error

Usage Error: No ancestor could be found between any of HEAD and master, origin/master, upstream/master, main, origin/main, upstream/main
[modify version] 

What I hope

Is there a switch to turn off this check, or does one already exist?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions