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'))
|
const { packageManager } = JSON.parse(await readFile(packageJsonPath, 'utf8'))
|
||||||
if (typeof packageManager !== 'string') {
|
if (typeof packageManager !== 'string') {
|
||||||
throw new Error(`No pnpm version is specified.
|
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 GitHub Action config with the key "version"
|
||||||
- in the package.json with the key "packageManager" (See https://nodejs.org/api/corepack.html)`)
|
- in the package.json with the key "packageManager" (See https://nodejs.org/api/corepack.html)`)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user