mirror of
https://github.com/pnpm/action-setup.git
synced 2024-11-10 09:39:11 +08:00
Update src/install-pnpm/run.ts
This commit is contained in:
parent
e7c10c6fc5
commit
777a50d72e
@ -42,7 +42,7 @@ async function readTarget(packageJsonPath: string, version?: string | undefined)
|
||||
const { packageManager } = JSON.parse(await readFile(packageJsonPath, 'utf8'))
|
||||
if (typeof packageManager !== 'string') {
|
||||
throw new Error(`No pnpm version is specified.
|
||||
Please specify it by one of the following way:
|
||||
Please specify it by one of the following ways:
|
||||
- in the GitHub Action config with the key "version"
|
||||
- in the package.json with the key "packageManager" (See https://nodejs.org/api/corepack.html)`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user