mirror of
https://github.com/pnpm/action-setup.git
synced 2026-07-07 05:05:48 +00:00
Compare commits
1 Commits
8cc2f6fe67
...
2456272c65
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2456272c65 |
@ -64,7 +64,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 8
|
version: 6.0.2
|
||||||
```
|
```
|
||||||
|
|
||||||
### Install pnpm and a few npm packages
|
### Install pnpm and a few npm packages
|
||||||
@ -83,7 +83,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 8
|
version: 6.0.2
|
||||||
run_install: |
|
run_install: |
|
||||||
- recursive: true
|
- recursive: true
|
||||||
args: [--frozen-lockfile, --strict-peer-dependencies]
|
args: [--frozen-lockfile, --strict-peer-dependencies]
|
||||||
|
|||||||
@ -6,7 +6,6 @@ branding:
|
|||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: Version of pnpm to install
|
description: Version of pnpm to install
|
||||||
required: false
|
|
||||||
dest:
|
dest:
|
||||||
description: Where to store pnpm files
|
description: Where to store pnpm files
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
@ -49,7 +49,7 @@ Otherwise, please specify the pnpm version in the action configuration.`)
|
|||||||
throw new Error(`No pnpm version is specified.
|
throw new Error(`No pnpm version is specified.
|
||||||
Please specify it by one of the following ways:
|
Please specify it by one of the following ways:
|
||||||
- in the GitHub Action config with the key "version"
|
- in the GitHub Action config with the key "version"
|
||||||
- in the package.json with the key "packageManager"`)
|
- in the package.json with the key "packageManager" (See https://nodejs.org/api/corepack.html)`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!packageManager.startsWith('pnpm@')) {
|
if (!packageManager.startsWith('pnpm@')) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user