
Pnpm Upgrade
- 131 installs
- 3.5k repo stars
- Updated August 4, 2026
- openai/openai-agents-js
pnpm upgrade skill aligning local pnpm, packageManager integrity, and GitHub Actions pnpm/action-setup pins.
About
Eight-step toolchain refresh for the openai-agents-js monorepo. Updates pnpm via self-update or corepack prepare, captures PNPM_VERSION, fetches npm registry integrity, converts sha512 digest to hex for packageManager field format pnpm@VERSION+sha512.HEX. Queries GitHub API for latest pnpm/action-setup release tag, resolves immutable commit SHA via git ls-remote, and hand-edits each workflow file using that action without broad regex replacements. Verifies pnpm -v matches packageManager, confirms integrity suffix, and diffs only intended files. Notes required tools curl, jq, base64, xxd, and recommends light verification unless runtime code changed.
- pnpm self-update or corepack prepare with version capture
- packageManager field with npm registry integrity sha512 hex suffix
- GitHub API latest action-setup tag resolved to immutable commit SHA
- Hand-edit workflows: uses pinned SHA and with version field only
- Verify pnpm -v matches packageManager before committing chore PR
Pnpm Upgrade by the numbers
- 131 all-time installs (skills.sh)
- +4 installs in the week ending Jul 26, 2026 (Skillselion tracking)
- Ranked #487 of 1,437 DevOps & CI/CD skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
pnpm-upgrade capabilities & compatibility
- Capabilities
- upgrade pnpm locally · sync package manager integrity · pin github action sha · verify workflow diff
- Works with
- github
- Use cases
- ci cd · devops
What pnpm-upgrade says it does
GitHub Actions must stay pinned to commit SHAs, not tags.
npx skills add https://github.com/openai/openai-agents-js --skill pnpm-upgradeAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 131 |
|---|---|
| repo stars | ★ 3.5k |
| Last updated | August 4, 2026 |
| Repository | openai/openai-agents-js ↗ |
How do I upgrade pnpm and sync package.json and workflow pins safely?
Upgrade pnpm locally and align packageManager integrity in package.json plus pinned pnpm/action-setup commit SHAs in GitHub workflows.
Who is it for?
Maintainers refreshing pnpm toolchain in openai-agents-js or similar monorepos with pinned Actions.
Skip if: Switching package managers away from pnpm or unrelated dependency bumps.
When should I use this skill?
User asks to refresh pnpm toolchain manually or in automation for openai-agents-js.
What you get
pnpm version, packageManager integrity, and workflow action SHAs updated with verified git diff.
Files
pnpm Upgrade
Use these steps to update pnpm and CI pins without blunt search/replace.
Steps (run from repo root)
1. Update pnpm locally
- Try
pnpm self-update; if pnpm is missing or self-update fails, runcorepack prepare pnpm@latest --activate. - Capture the resulting version as
PNPM_VERSION=$(pnpm -v).
2. Resolve pnpm package integrity
- Query npm registry for the exact package integrity:
curl -fsSL "https://registry.npmjs.org/pnpm/${PNPM_VERSION}" | jq -r .dist.integrity. - Store the result as
PNPM_INTEGRITY. - Abort if the integrity is missing or does not start with
sha512-. - Convert the base64 digest after
sha512-to lowercase hex, for example:
printf '%s' "${PNPM_INTEGRITY#sha512-}" | base64 -d | xxd -p -c 256- Store the result as
PNPM_SHA512_HEX.
3. Align package.json
- Open
package.jsonand setpackageManagertopnpm@${PNPM_VERSION}+sha512.${PNPM_SHA512_HEX}(preserve trailing newline and formatting).
4. Find latest pnpm/action-setup tag
- Query GitHub API:
curl -fsSL https://api.github.com/repos/pnpm/action-setup/releases/latest | jq -r .tag_name. - Use
GITHUB_TOKEN/GH_TOKENif available for higher rate limits. - Store as
ACTION_TAG(e.g.,v4.2.0). Abort if missing.
5. Resolve the action tag to an immutable commit SHA
- Run
git ls-remote https://github.com/pnpm/action-setup "refs/tags/${ACTION_TAG}^{}"and capture the SHA asACTION_SHA. - If the dereferenced tag is missing, fall back to
git ls-remote https://github.com/pnpm/action-setup "refs/tags/${ACTION_TAG}". - Abort if
ACTION_SHAis empty.
6. Update workflows carefully (no broad regex)
- Files: everything under
.github/workflows/that usespnpm/action-setup. - For each file, edit by hand:
- Set
uses: pnpm/action-setup@${ACTION_SHA}. - If a
with: version:field exists, set it to${PNPM_VERSION}(keep quoting style/indent). - Do not touch unrelated steps. Avoid multiline sed/perl one-liners.
7. Verify
- Run
pnpm -vand confirm it matches the version portion ofpackageManager. - Confirm
packageManagerkeeps the exact+sha512.${PNPM_SHA512_HEX}suffix. git diffto ensure only intended workflow/package.json changes.
8. Follow-up
- If runtime code/build/test config was changed (not typical here), run
$code-change-verification; otherwise, a light check is enough. - Commit with
chore: upgrade pnpm toolchainand open a PR (automation may do this).
Notes
- Tools needed:
curl,jq,base64,xxd,node,pnpm/corepack. Install if missing. - Keep edits minimal and readable—prefer explicit file edits over global replacements.
- GitHub Actions must stay pinned to commit SHAs, not tags. Use the latest release tag only to discover the commit SHA to pin.
- If GitHub API is rate-limited, retry with a token or bail out rather than guessing the tag.
interface:
display_name: "pnpm Upgrade"
short_description: "Refresh local pnpm and CI workflow pins"
default_prompt: "Use $pnpm-upgrade to update pnpm locally, align packageManager, and refresh pinned pnpm/action-setup workflow versions."
Related skills
FAQ
Why pin action-setup to a commit SHA not a tag?
GitHub Actions must use immutable commit SHAs; the latest release tag is only used to discover the SHA to pin.
What goes in packageManager?
pnpm@${PNPM_VERSION}+sha512.${PNPM_SHA512_HEX} where hex comes from the npm registry integrity digest.
Should I run full code verification after this?
Only if runtime code changed; otherwise a light pnpm -v and git diff check is enough.