docs: Update README to include devEngines.packageManager (#273)
Test Action / Smoke (macos / v9.15.5) (push) Has been cancelled
Test Action / Smoke (ubuntu / v10.33.0) (push) Has been cancelled
Test Action / Smoke (ubuntu / v9.15.5) (push) Has been cancelled
Test Action / Smoke (windows / v9.15.5) (push) Has been cancelled
Test Action / Smoke (ubuntu / v9.15.5 / custom-dest) (push) Has been cancelled
Test Action / Manifest pin: devEngines onFail=download, exact (push) Has been cancelled
Test Action / Manifest pin: devEngines onFail=download, range (push) Has been cancelled
Test Action / Manifest pin: devEngines onFail=error, exact (#252) (push) Has been cancelled
Test Action / Manifest pin: devEngines onFail=error, range (#252) (push) Has been cancelled
Test Action / Manifest pin: packageManager pnpm@10.33.0 (push) Has been cancelled
Test Action / Manifest pin: packageManager pnpm@9.15.5 (#227) (push) Has been cancelled
Test Action / Manifest pin: explicit version: pnpm_config_pm_on_fail not exported (push) Has been cancelled
Test Action / Standalone mode (push) Has been cancelled
Test Action / Standalone Windows self-update (PATH regression) (push) Has been cancelled
Test Action / Cache store path matches install (#233): devEngines exact pnpm@10.33.0 (push) Has been cancelled
Test Action / Cache store path matches install (#233): devEngines range >=10 <11 (push) Has been cancelled
Test Action / Cache store path matches install (#233): packageManager pnpm@10.33.0 (push) Has been cancelled
Test Action / run_install (global) (push) Has been cancelled
Test Action / run_install (null) (push) Has been cancelled

Support added in #211 and #256
This commit is contained in:
Eric Nemchik
2026-08-03 13:44:13 +02:00
committed by GitHub
parent 48261aca05
commit 0977fd9972
+4 -4
View File
@@ -62,7 +62,7 @@ Input and output changes:
Version of pnpm to install.
**Optional** when there is a [`packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html).
**Optional** when there is a [`packageManager` or `devEngines.packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html).
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`.
@@ -102,7 +102,7 @@ If `run_install` is a YAML string representation of either an object or an array
### `package_json_file`
**Optional** (_type:_ `string`, _default:_ `package.json`) File path to the `package.json`/[`package.yaml`](https://github.com/pnpm/pnpm/pull/1799) to read "packageManager" configuration.
**Optional** (_type:_ `string`, _default:_ `package.json`) File path to the `package.json`/[`package.yaml`](https://github.com/pnpm/pnpm/pull/1799) to read `packageManager` or `devEngines.packageManager` configuration.
### `standalone`
@@ -124,7 +124,7 @@ Location of `pnpm` and `pnpx` command.
### 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`.
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`.
```yaml
on:
@@ -143,7 +143,7 @@ jobs:
### Install only pnpm with `packageManager`
Omit `version` input to use the version in the [`packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html).
Omit `version` input to use the version in the [`packageManager` or `devEngines.packageManager` field in the `package.json`](https://nodejs.org/api/corepack.html).
```yaml
on: