update the ci pnpm workflow for shell-tool-mcp to use corepack for pnpm versioning (#10115)

This updates the CI workflows for shell-tool-mcp to use the pnpm version
from package.json and print it in the build for verification.

I have read the CLA Document and I hereby sign the CLA
This commit is contained in:
mjr-openai
2026-01-28 18:30:48 -05:00
committed by GitHub
parent 7b34cad1b1
commit 83d7c44500
4 changed files with 28 additions and 3 deletions

View File

@@ -35,6 +35,15 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
- name: Enable Corepack
run: corepack enable
- name: Activate pnpm from package.json
run: corepack prepare --activate
- name: Verify pnpm version
run: pnpm --version
- name: Install dependencies
run: pnpm install --frozen-lockfile

View File

@@ -351,6 +351,15 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}
- name: Enable Corepack
run: corepack enable
- name: Activate pnpm from package.json
run: corepack prepare --activate
- name: Verify pnpm version
run: pnpm --version
- name: Install JavaScript dependencies
run: pnpm install --frozen-lockfile
@@ -448,8 +457,14 @@ jobs:
registry-url: https://registry.npmjs.org
scope: "@openai"
- name: Update npm
run: npm install -g npm@latest
- name: Enable Corepack
run: corepack enable
- name: Activate pnpm from package.json
run: corepack prepare --activate
- name: Verify pnpm version
run: pnpm --version
- name: Download npm tarball
uses: actions/download-artifact@v7

View File

@@ -19,7 +19,7 @@
},
"engines": {
"node": ">=22",
"pnpm": ">=9.0.0"
"pnpm": ">=10.28.0"
},
"packageManager": "pnpm@10.28.2+sha512.41872f037ad22f7348e3b1debbaf7e867cfd448f2726d9cf74c08f19507c31d2c8e7a11525b983febc2df640b5438dee6023ebb1f84ed43cc2d654d2bc326264"
}

View File

@@ -3,6 +3,7 @@
"version": "0.0.0-dev",
"description": "Codex MCP server for the shell tool with patched Bash and exec wrappers.",
"license": "Apache-2.0",
"packageManager": "pnpm@10.28.2+sha512.41872f037ad22f7348e3b1debbaf7e867cfd448f2726d9cf74c08f19507c31d2c8e7a11525b983febc2df640b5438dee6023ebb1f84ed43cc2d654d2bc326264",
"bin": {
"codex-shell-tool-mcp": "bin/mcp-server.js"
},