mirror of
https://github.com/pnpm/action-setup.git
synced 2026-07-05 17:33:45 +08:00
Compare commits
6 Commits
update-pnp
...
6f71a44c65
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f71a44c65 | ||
|
|
d648c2dd06 | ||
|
|
a7487c7e89 | ||
|
|
fff70888d0 | ||
|
|
6e3017af18 | ||
|
|
4b568c8023 |
@@ -1,7 +1,3 @@
|
||||
> ## :warning: Upgrade from v2!
|
||||
>
|
||||
> The v2 version of this action [has stopped working](https://github.com/pnpm/action-setup/issues/135) with newer Node.js versions. Please, upgrade to the latest version to fix any issues.
|
||||
|
||||
# Setup pnpm
|
||||
|
||||
Install pnpm package manager.
|
||||
@@ -44,7 +40,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` 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" configuration.
|
||||
|
||||
### `standalone`
|
||||
|
||||
|
||||
6
dist/index.js
vendored
6
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -64,6 +64,7 @@ async function readTarget(opts: {
|
||||
if (version) {
|
||||
if (
|
||||
typeof packageManager === 'string' &&
|
||||
packageManager.startsWith('pnpm@') &&
|
||||
packageManager.replace('pnpm@', '') !== version
|
||||
) {
|
||||
throw new Error(`Multiple versions of pnpm specified:
|
||||
|
||||
Reference in New Issue
Block a user