Publishing with --from-pack-dir does not work with yarn (does not support publishing from a tarball)
Recently upgraded a repo with v3. Amazing work, especially the workspace protocol and extended package manager support.
I've runned into an issue with latest yarn berry (4.18.0) when trying to publish (both locally and from ci) when using the pack step.
And it totally made sense, yarn isn't able to publish from archives.
yarn changeset pack --out-dir /tmp/release
# Successfully create the release tarballs
yarn changeset publish --from-pack-dir /tmp/release
# Error with: Yarn does not support publishing from a tarball.
┌ changeset v3.0.3
│
│
■ Some packages failed to publish:
│ @flowblade/[email protected]
│ └ (no code): Yarn does not support publishing from a tarball.
│
└ Exited with code 1I'd like to know if there's a possibility to bypass the package manager detection (via env or arg) for the publishing (changeset/action) when using a tarball archive ?
If not, would it make a sense to propose such a feature ?
I feel that once the packing done, npm should be preferred for publishing as etiher yarn (no support) or pnpm (less mature since v11) might be more limited or prone to errors.
A configuration option should made the trick (--with-package-manager=npm for example)
What do you think ?
Source: changesets/changesets