npx skills add ...
npx skills add openai/openai-agents-js --skill pnpm-upgrade
npx skills add openai/openai-agents-js --skill pnpm-upgrade
Keep pnpm current: preflight the published package and pnpm/action-setup self-installer, update pnpm locally, align packageManager in package.json, and refresh CI pins. Use this when refreshing the pnpm toolchain manually or in automation.
Use these steps to update pnpm and CI pins without blunt search/replace.
Resolve the target pnpm release
PNPM_VERSION=$(curl -fsSL https://registry.npmjs.org/pnpm/latest | jq -r .version).curl -fsSL "https://registry.npmjs.org/pnpm/${PNPM_VERSION}" | jq -r .dist.integrity.PNPM_INTEGRITY.sha512-.sha512- to lowercase hex, for example:
PNPM_SHA512_HEX.Find the target pnpm/action-setup release
curl -fsSL https://api.github.com/repos/pnpm/action-setup/releases/latest | jq -r .tag_name.GITHUB_TOKEN/GH_TOKEN if available for higher rate limits.ACTION_TAG (e.g., v4.2.0). Abort if missing.Resolve the action tag to an immutable commit SHA
git ls-remote https://github.com/pnpm/action-setup "refs/tags/${ACTION_TAG}^{}" and capture the SHA as ACTION_SHA.git ls-remote https://github.com/pnpm/action-setup "refs/tags/${ACTION_TAG}".ACTION_SHA is empty.Preflight the release and CI installation path
node .agents/skills/pnpm-upgrade/scripts/preflight.mjs --version "${PNPM_VERSION}" --action-ref "${ACTION_SHA}".dependencies or devDependencies. pnpm bundles its runtime dependencies, so these fields indicate a broken publication such as pnpm@11.12.0.pnpm/action-setup installation paths in separate temporary directories: install the regular pnpm bootstrap from pnpm-lock.json and the standalone @pnpm/exe bootstrap from exe-lock.json, set isolated PNPM_HOME directories, and self-update each bootstrap to PNPM_VERSION.Update pnpm locally
pnpm self-update "${PNPM_VERSION}".corepack prepare "pnpm@${PNPM_VERSION}" --activate. Do not use this fallback to bypass a failed preflight.pnpm -v exactly matches PNPM_VERSION.Align package.json
package.json and set packageManager to pnpm@${PNPM_VERSION}+sha512.${PNPM_SHA512_HEX} (preserve trailing newline and formatting).Update workflows carefully (no broad regex)
.github/workflows/ that uses pnpm/action-setup.uses: pnpm/action-setup@${ACTION_SHA}.with: version: field exists, set it to ${PNPM_VERSION} (keep quoting style/indent).Verify
pnpm -v and confirm it matches the version portion of packageManager.packageManager keeps the exact +sha512.${PNPM_SHA512_HEX} suffix.git diff to ensure only intended workflow/package.json changes.Follow-up
$code-change-verification; otherwise, a light check is enough.chore: upgrade pnpm toolchain and open a PR (automation may do this).curl, jq, base64, xxd, node, npm, and pnpm/corepack. Install if missing.