Skip to content

Commit 8b2f041

Browse files
authored
Upgrade repository to pnpm 11 (#15202)
* Upgrade repository to pnpm 11 Assisted-By: devx/988c1e2f-7688-4786-a6e7-89ad2f4a9d6e * Allow preview workflow lockfile updates * Call preview scripts directly * Make usage notes consistent
1 parent ab2c792 commit 8b2f041

7 files changed

Lines changed: 411 additions & 407 deletions

File tree

.github/workflows/preview.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Build/push branch (push)
7777
if: github.event_name == 'push'
7878
run: |
79-
pnpm run previews:branch preview/main
79+
node ./scripts/previews/branch.ts preview/main
8080
git push --force --set-upstream origin preview/main
8181
echo "💿 pushed installable branch: https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"
8282
@@ -86,17 +86,17 @@ jobs:
8686
env:
8787
GITHUB_TOKEN: ${{ github.token }}
8888
run: |
89-
pnpm run previews:branch preview/pr-${{ github.event.pull_request.number }}
89+
node ./scripts/previews/branch.ts preview/pr-${{ github.event.pull_request.number }}
9090
git push --force --set-upstream origin preview/pr-${{ github.event.pull_request.number }}
9191
echo "pushed installable branch: https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"
92-
pnpm run previews:pr comment ${{ github.event.pull_request.number }} preview/pr-${{ github.event.pull_request.number }}
92+
node ./scripts/previews/pr.ts comment ${{ github.event.pull_request.number }} preview/pr-${{ github.event.pull_request.number }}
9393
9494
# Build and normal push for experimental releases to avoid unintended force
9595
# pushes over remote branches in case of a branch name collision
9696
- name: Build/push branch (workflow_dispatch)
9797
if: github.event_name == 'workflow_dispatch'
9898
run: |
99-
pnpm run previews:branch ${{ inputs.installableBranch }}
99+
node ./scripts/previews/branch.ts ${{ inputs.installableBranch }}
100100
git push --set-upstream origin ${{ inputs.installableBranch }}
101101
echo "💿 pushed installable branch: https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"
102102
@@ -106,4 +106,4 @@ jobs:
106106
env:
107107
GITHUB_TOKEN: ${{ github.token }}
108108
run: |
109-
pnpm run previews:pr cleanup ${{ github.event.pull_request.number }} preview/pr-${{ github.event.pull_request.number }}
109+
node ./scripts/previews/pr.ts cleanup ${{ github.event.pull_request.number }} preview/pr-${{ github.event.pull_request.number }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
token: ${{ secrets.FORMAT_PAT }}
8686

8787
- name: Install pnpm
88-
uses: pnpm/action-setup@v5
88+
uses: pnpm/action-setup@v6
8989

9090
- name: Install Node.js
9191
uses: actions/setup-node@v6

package.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
"playground": "node ./scripts/playground.js",
2626
"prerelease:version": "node ./scripts/prerelease.ts version",
2727
"prerelease:publish": "node ./scripts/prerelease.ts publish",
28-
"previews:branch": "node ./scripts/previews/branch.ts",
29-
"previews:pr": "node ./scripts/previews/pr.ts",
3028
"release-comments": "node scripts/release-comments.ts",
3129
"test": "node --experimental-vm-modules --no-warnings=ExperimentalWarning ./node_modules/jest/bin/jest.js",
3230
"test:inspect": "node --experimental-vm-modules --no-warnings=ExperimentalWarning --inspect-brk ./node_modules/jest/bin/jest.js",
@@ -49,7 +47,7 @@
4947
"default"
5048
]
5149
},
52-
"packageManager": "pnpm@9.10.0",
50+
"packageManager": "pnpm@11.7.0",
5351
"resolutions": {
5452
"@types/react": "catalog:",
5553
"@types/react-dom": "catalog:",
@@ -97,11 +95,5 @@
9795
},
9896
"engines": {
9997
"node": ">=22.22.0"
100-
},
101-
"pnpm": {
102-
"overrides": {
103-
"react-is": "19.1.0",
104-
"unified": "11.0.5"
105-
}
10698
}
10799
}

0 commit comments

Comments
 (0)