1
0
mirror of https://github.com/pnpm/action-setup.git synced 2026-06-17 15:53:45 +08:00

Compare commits

..

1 Commits

Author SHA1 Message Date
Zoltan Kochan
1682287a8f test: update pnpm to v9 2025-02-06 22:22:33 +01:00
3 changed files with 12 additions and 7 deletions

View File

@@ -1,3 +1,7 @@
> ## :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.
@@ -36,11 +40,11 @@ If `run_install` is a YAML string representation of either an object or an array
#### `run_install.args`
**Optional** (_type:_ `string[]`) Additional arguments after `pnpm [recursive] install`, e.g. `[--ignore-scripts, --strict-peer-dependencies]`.
**Optional** (_type:_ `string[]`) Additional arguments after `pnpm [recursive] install`, e.g. `[--frozen-lockfile, --strict-peer-dependencies]`.
### `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` to read "packageManager" configuration.
### `standalone`
@@ -113,9 +117,9 @@ jobs:
- uses: pnpm/action-setup@v4
with:
version: 10
run_install:
run_install: |
- recursive: true
args: [--strict-peer-dependencies]
args: [--frozen-lockfile, --strict-peer-dependencies]
- args: [--global, gulp, prettier, typescript]
```

6
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -64,7 +64,6 @@ 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: