mirror of
				https://github.com/pnpm/action-setup.git
				synced 2025-11-04 13:29:08 +08:00 
			
		
		
		
	Update src/install-pnpm/run.ts
This commit is contained in:
		@@ -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)`)
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user