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

Upgrade to Yarn 4 #1229

Open
nelsonni opened this issue Aug 15, 2023 · 1 comment
Open

Upgrade to Yarn 4 #1229

nelsonni opened this issue Aug 15, 2023 · 1 comment
Assignees
Labels
feature Feature requests or improvements

Comments

@nelsonni
Copy link
Member

The yarn version command in Yarn 1 automatically, by default, creates an annotated Git tag when run within a Git repository. The resulting git tag follows the format v0.0.0. However, this feature has been removed in Yarn 3 and is nowhere to be found in the Release Workflow documentation page.

It does appear that this feature will be reintroduced as part of Yarn 4, which lists changes that include:

Make yarn version create tags for the relevant workspaces

We will track the following Yarn repository issue in preparation for the release of Yarn 4 (and hopefully the reintroduction of git tags) via:

@nelsonni nelsonni added the feature Feature requests or improvements label Aug 15, 2023
@nelsonni nelsonni self-assigned this Aug 15, 2023
@nelsonni
Copy link
Member Author

As long as yarn version is upgraded to include the creation of annotated Git tags in Yarn 4, we should be able simplify some of the release scripts in package.json:

+ "release:push": "git push --atomic origin main --tags",
- "release:push": "git tag v$npm_package_version && git push --atomic origin main --tags",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature requests or improvements
Projects
None yet
Development

No branches or pull requests

1 participant