Upgrade from pnpm v10 to v12 (#99827)
Hopefully this should make test setup a little faster and it should make
it easier for me to test compatibility with pnpm GVS (#99758).
I previously tried to upgrade us to pnpm 11, but couldn't because it
requires Node 22+, and we need to test against Node 20. However, pnpm 12
is written in Rust, and does not depend on particular versions of Node.
## Other notable changes
- Nx: Some of our tests needed an upgrade. It parses the pnpm lockfile,
like Turborepo.
- pnpm 12 fails to install from an uncompressed tarball (only supports
gziped-tarballs?), so this builds the `tgz` from source (previously we
had a binary tarball committed to the repo).
## Testing
I manually ran the e2e deployment tests:
https://github.com/vercel/next.js/actions/runs/38491349790