Là một dự án tự động hoá, pnpm/action-setup đã đạt 1.3k sao trên GitHub, ngôn ngữ TypeScript. Install pnpm package manager
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
[!IMPORTANT]
This action supports pnpm v12 and earlier.
For pnpm v11 and newer, pnpm/setup is also available. It downloads pnpm's self-contained release binary (no Node.js or npm required) and can install a JavaScript runtime (Node.js, Bun, or Deno) in the same step, replacing actions/setup-node when its feature set fits your workflow.
You can continue using pnpm/action-setup with actions/setup-node, including for pnpm v11 and v12. See Using pnpm/setup instead below if you want a single action to install pnpm and a JavaScript runtime.
pnpm/setup cannot install pnpm v11 on Intel macOS (darwin-x64), where no standalone pnpm v11 binary is published. On that platform, run actions/setup-node with Node.js 22.13 or newer before pnpm/action-setup, or upgrade to pnpm v12.
Setup pnpm
Install pnpm package manager.
:warning: Upgrade from v2!
The v2 version of this action has stopped working with newer Node.js versions. Please, upgrade to the latest version to fix any issues.
Using pnpm/setup instead
pnpm/setup installs pnpm v11+ as a native standalone executable and can install Node.js, Bun, or Deno in the same step, so a typical workflow no longer needs actions/setup-node or an explicit pnpm install step:
The version input can be omitted only when packageManager (or devEngines.packageManager) in package.json declares pnpm v11 or newer; otherwise keep it explicit, since pnpm/setup requires pnpm v11+.
Input and output changes:
pnpm/action-setup
pnpm/setup
Notes
version
version
Must resolve to pnpm v11 or newer. As before, it can be omitted when packageManager (or devEngines.packageManager) is set in package.json.
dest
dest
Unchanged.
run_install
install
pnpm/setup runs pnpm install automatically when a package.json is present (install: true by default); set install: false to skip it. The object/array form (recursive, cwd, args) is not supported — run those commands in separate steps.
cache
cache
Unchanged.
cache_dependency_path
cache-dependency-path
Renamed to kebab-case.
package_json_file
package-json-file
Renamed to kebab-case.
standalone
removed
pnpm/setup always installs the standalone native executable.
n/a
runtime
New: installs Node.js, Bun, or Deno (e.g. node@22, bun@latest, deno@2), or reads devEngines.runtime from package.json.
n/a
token
New: GitHub token for release lookup; defaults to ${{ github.token }} and rarely needs to be set.
bin_dest (output)
bin-dest (output)
Renamed to kebab-case. New outputs runtime-name and runtime-version describe the installed runtime.
Inputs
version
Version of pnpm to install.
Optional when package.json declares pnpm in packageManager, or sets devEngines.packageManager.name to "pnpm" and provides devEngines.packageManager.version.
otherwise, this field is required It supports npm versioning scheme, it could be an exact version (such as 10.9.8), or a version range (such as 10, 10.x.x, 10.9.x, ^10.9.8, *, etc.), or latest.
dest
Optional Where to store pnpm files.
run_install
Optional (default:null) If specified, run pnpm install.
If run_install is either null or false, pnpm will not install any npm package.
If run_install is true, pnpm will install dependencies recursively.
If run_install is a YAML string representation of either an object or an array, pnpm will execute every install commands.
run_install.recursive
Optional (type:boolean, default:false) Whether to use pnpm recursive install.
run_install.cwd
Optional (type:string) Working directory when run pnpm [recursive] install.
run_install.args
Optional (type:string[]) Additional arguments after pnpm [recursive] install, e.g. [--ignore-scripts, --strict-peer-dependencies].
cache
Optional (type:boolean, default:false) Whether to cache the pnpm store directory.
cache_dependency_path
Optional (type:string, default:pnpm-lock.yaml) File path to the pnpm lockfile, whose contents hash will be used as a cache key. Accepts multiple paths delimited by newlines.
package_json_file
Optional (type:string, default:package.json) File path to the package.json/package.yaml to read packageManager or devEngines.packageManager configuration.
standalone
Optional (type:boolean, default:false) For pnpm v11 and earlier, install @pnpm/exe, enabling pnpm to run without Node.js.
For pnpm v12, this input has no effect because the plain pnpm package already installs a standalone native executable.
Outputs
dest
Expanded path of inputs#dest.
bin_dest
Location of pnpm and pnpx command.
Usage example
Install only pnpm without packageManager
This works when the repo either doesn't have a package.json or has a package.json but it doesn't specify packageManager or devEngines.packageManager.
This action does not set up Node.js. Use actions/setup-node yourself. As an alternative for pnpm v11 or newer, pnpm/setup can install pnpm and Node.js in a single step.
pnpm/action-setup có 1.3k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/pnpm/action-setup. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
pnpm/action-setup có những chủ đề gì?
GitHub topics của pnpm/action-setup: "actions", "ci", "github-actions", "nodejs", "pnpm". TopGit xếp repo vào nhóm Automation.
pnpm/action-setup còn đang phát triển không?
Commit gần nhất trên pnpm/action-setup là 3 tháng trước (theo timestamp GitHub). Repo có 216 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
pnpm/action-setup là gì?
pnpm/action-setup (pnpm/action-setup) là dự án TypeScript trên GitHub. Theo mô tả gốc: Install pnpm package manager
pnpm/action-setup so với các dự án Automation khác thế nào?
pnpm/action-setup được TopGit xếp vào nhóm Automation, với 1.3k sao GitHub và viết bằng TypeScript. Xem trang chủ đề Automation trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
pnpm/action-setup viết bằng ngôn ngữ gì?
pnpm/action-setup chủ yếu viết bằng TypeScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Vì sao pnpm/action-setup được xếp vào nhóm Automation?
TopGit xếp pnpm/action-setup vào nhóm Automation dựa trên GitHub topics và mô tả của repo (gắn thẻ: "actions", "ci", "github-actions"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về action-setup?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về action-setup.