pnpm-upgrade

Use these steps to update pnpm and CI pins without blunt search/replace.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pnpm-upgrade" with this command: npx skills add openai/openai-agents-js/openai-openai-agents-js-pnpm-upgrade

pnpm Upgrade

Use these steps to update pnpm and CI pins without blunt search/replace.

Steps (run from repo root)

Update pnpm locally

  • Try pnpm self-update ; if pnpm is missing or self-update fails, run corepack prepare pnpm@latest --activate .

  • Capture the resulting version as PNPM_VERSION=$(pnpm -v) .

Align package.json

  • Open package.json and set packageManager to pnpm@${PNPM_VERSION} (preserve trailing newline and formatting).

Find latest pnpm/action-setup tag

Resolve the action tag to an immutable commit SHA

Update workflows carefully (no broad regex)

  • Files: everything under .github/workflows/ that uses pnpm/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.

Verify

  • Run pnpm -v and confirm it matches packageManager .

  • git diff to ensure only intended workflow/package.json changes.

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 toolchain and open a PR (automation may do this).

Notes

  • Tools needed: curl , jq , 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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

changeset-validation

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

integration-tests

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

openai-knowledge

No summary provided by upstream source.

Repository SourceNeeds Review
-127
openai