Repository: JoshuaKGoldberg/create-typescript-app (ts)

Issue:
🐛 Bug: pnpm/action-setup@v2 is raises warning `The following actions uses Node.js version which is deprecated and will be forced to run on node20`
### Bug Report Checklist

- [X] I have tried restarting my IDE and the issue persists.
- [X] I have pulled the latest `main` branch of the repository.
- [X] I have [searched for related issues](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aissue) and found none that matched my issue.

### Expected

Actions to run without warnings

### Actual

The following message shows up in GitHub Actions:

> The following actions uses Node.js version which is deprecated and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

<img width="1353" alt="screenshot of text" src="https://github.com/user-attachments/assets/f0b08d0c-61c6-4e1b-9e8e-4620d42fe543">


### Additional Info

_No response_

Pull request description:
fix: upgrade pnpm/action-setup to v4
<!-- 👋 Hi, thanks for sending a PR to create-typescript-app! 💖.
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR. -->

## PR Checklist

- [x] Addresses an existing open issue: fixes #1619
- [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken

## Overview

<!-- Description of what is changed and how the code change does that. -->

This PR upgrades the `pnpm/action-setup@v2` to `pnpm/action-setup@v4` which should resolve the warning.

From the looks of the releases page, 3 would work as well: https://github.com/pnpm/action-setup/releases

Patch:
diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml
index 1c10c25..e8b953c 100644
--- a/.github/actions/prepare/action.yml
+++ b/.github/actions/prepare/action.yml
@@ -4,7 +4,7 @@ name: Prepare
 
 runs:
   steps:
-    - uses: pnpm/action-setup@v2
+    - uses: pnpm/action-setup@v4
       with:
         version: 9
     - uses: actions/setup-node@v4
diff --git a/src/steps/writing/creation/dotGitHub/actions.ts b/src/steps/writing/creation/dotGitHub/actions.ts
index f04ba91..3df2c87 100644
--- a/src/steps/writing/creation/dotGitHub/actions.ts
+++ b/src/steps/writing/creation/dotGitHub/actions.ts
@@ -10,7 +10,7 @@ export function createDotGitHubActions() {
 					runs: {
 						steps: [
 							{
-								uses: "pnpm/action-setup@v2",
+								uses: "pnpm/action-setup@v4",
 								with: { version: 9 },
 							},
 							{


Test patch:
diff --git a/src/steps/writing/creation/dotGitHub/actions.test.ts b/src/steps/writing/creation/dotGitHub/actions.test.ts
index 66cceed..d2f648d 100644
--- a/src/steps/writing/creation/dotGitHub/actions.test.ts
+++ b/src/steps/writing/creation/dotGitHub/actions.test.ts
@@ -14,7 +14,7 @@ name: Prepare
 
 runs:
   steps:
-    - uses: pnpm/action-setup@v2
+    - uses: pnpm/action-setup@v4
       with:
         version: 9
     - uses: actions/setup-node@v4