Skip to content

Commit 81c157d

Browse files
authored
fix(repo): align pnpm version in CI workflows with package.json (#34370)
## Current Behavior Several GitHub Actions workflows hardcode pnpm version `10.11.1`, while `package.json` specifies `pnpm@10.28.2` in the `packageManager` field. This causes CI failures with: ``` Error: Multiple versions of pnpm specified: - version 10.11.1 in the GitHub Action config with the key "version" - version pnpm@10.28.2 in the package.json with the key "packageManager" ``` ## Expected Behavior All pnpm version references across CI workflows should match the `packageManager` field in `package.json` (`10.28.2`). ## Related Issue(s) N/A — Fixing CI breakage from version mismatch. ## Changes Updated pnpm version from `10.11.1` → `10.28.2` in: - `.github/workflows/npm-audit.yml` — `pnpm/action-setup` version - `.github/workflows/publish.yml` — `PNPM_VERSION` env var and FreeBSD install - `.github/workflows/issue-notifier.yml` — `pnpm/action-setup` version - `.github/workflows/generate-embeddings.yml` — `pnpm/action-setup` version
1 parent 1f5520e commit 81c157d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/generate-embeddings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: pnpm/action-setup@7088e561eb65bb68695d245aa206f005ef30921d # v4.1.0
2727
id: pnpm-install
2828
with:
29-
version: 10.11.1
29+
version: 10.28.2
3030
run_install: false
3131

3232
- name: Get pnpm store directory

.github/workflows/issue-notifier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
- uses: pnpm/action-setup@7088e561eb65bb68695d245aa206f005ef30921d # v4.1.0
2222
with:
23-
version: 10.11.1
23+
version: 10.28.2
2424

2525
- name: Use Node.js ${{ matrix.node_version }}
2626
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0

.github/workflows/npm-audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: pnpm/action-setup@7088e561eb65bb68695d245aa206f005ef30921d # v4.1.0
2020
with:
21-
version: 10.11.1 # Aligned with root package.json (pnpm/action-setup will helpfully error if out of sync)
21+
version: 10.28.2 # Aligned with root package.json (pnpm/action-setup will helpfully error if out of sync)
2222

2323
- name: Run a security audit
2424
run: pnpm dlx audit-ci --critical --report-type summary

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
NX_RUN_GROUP: ${{ github.run_id }}-${{ github.run_attempt }}
2323
CYPRESS_INSTALL_BINARY: 0
2424
NODE_VERSION: 22.16.0
25-
PNPM_VERSION: 10.11.1 # Aligned with root package.json (pnpm/action-setup will helpfully error if out of sync)
25+
PNPM_VERSION: 10.28.2 # Aligned with root package.json (pnpm/action-setup will helpfully error if out of sync)
2626

2727
jobs:
2828
# We first need to determine the version we are releasing, and if we need a custom repo or ref to use for the git checkout in subsequent steps.
@@ -406,7 +406,7 @@ jobs:
406406
env
407407
whoami
408408
sudo pkg install -y -f node libnghttp2 www/npm git openjdk17
409-
sudo npm install --location=global --ignore-scripts pnpm@10.11.1
409+
sudo npm install --location=global --ignore-scripts pnpm@10.28.2
410410
# Set up Java 17
411411
export JAVA_HOME=/usr/local/openjdk17
412412
export PATH="$JAVA_HOME/bin:$PATH"

0 commit comments

Comments
 (0)