Skip to content

yarn2 berry issues with updating the yarn.lock #58

Open
@rburgst

Description

@rburgst

I am currently using this lib to release my packages in a mono repo using yarn berry.

The problem I have is that the semantic-release/npm plugin properly rewrites the package verisons however, it does not cause an update to the yarn.lock.
I played around with configuring an /exec task that runs yarn install however, this also does not work since semantic-release/git only checks the modified files in the package path.
Therefore, it cannot see modifications in the root yarn.lock file.

Therefore, the updated yarn.lock is never committed which causes build errors since yarn berry runs yarn install in CI via the -immutable flag automatically.

The only solution I can currently think of is running a yarn install+git commit on my own after MSR is done.
It would be nicer if we could somehow get the root yarn.lock into the commit that bumps the version number.

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