berry icon indicating copy to clipboard operation
berry copied to clipboard

Publish releases to Windows Package Manager (WinGet)

Open vedantmgoyal9 opened this issue 3 years ago • 4 comments

With every new release of Yarn, use a GitHub workflow to update manifests at https://github.com/microsoft/winget-pkgs repository.

I can create a pull request if you would like. It would help in keeping manifests up-to-date at WinGet with every new release automatically.

vedantmgoyal9 avatar Jul 23 '22 16:07 vedantmgoyal9

I don't think this is necessary, as the suggested way to use Yarn now is Corepack, which is bundled with Node.js. All you have to do is run corepack enable in a command prompt with admin, and corepack will manage the version of Yarn being used per-project.

RDIL avatar Sep 06 '22 21:09 RDIL

So should we remove Yarn from WinGet?

vedantmgoyal9 avatar Sep 07 '22 11:09 vedantmgoyal9

If it's already been added, I wouldn't remove it, but it's probably not worth it to add new versions. It just complicates the already confusing setup of having a global Yarn which is installed through npm which then calls a newer Yarn version if it's present etc etc etc, it's much simpler to say enable Corepack which handles selecting the appropriate Yarn version where needed.

RDIL avatar Sep 07 '22 15:09 RDIL

My concern was that people might install older versions from WinGet if won't be updated there. That's why IMO it's best to remove the package from the repository or add a note in the documentation.

BTW, if can you move this issue to yarnpkg/berry repository, it may grab more attention of maintainers as well as users 😉

vedantmgoyal9 avatar Sep 08 '22 16:09 vedantmgoyal9