mirror of
				https://kkgithub.com/actions/setup-node.git
				synced 2025-11-01 03:01:53 +08:00 
			
		
		
		
	Merge branch 'master' of https://github.com/actions/setup-node into auth
This commit is contained in:
		| @ -205,18 +205,18 @@ function acquireNodeFromFallbackLocation(version) { | ||||
|             exeUrl = `https://nodejs.org/dist/v${version}/win-${os.arch()}/node.exe`; | ||||
|             libUrl = `https://nodejs.org/dist/v${version}/win-${os.arch()}/node.lib`; | ||||
|             const exePath = yield tc.downloadTool(exeUrl); | ||||
|             yield io.mv(exePath, path.join(tempDir, 'node.exe')); | ||||
|             yield io.cp(exePath, path.join(tempDir, 'node.exe')); | ||||
|             const libPath = yield tc.downloadTool(libUrl); | ||||
|             yield io.mv(libPath, path.join(tempDir, 'node.lib')); | ||||
|             yield io.cp(libPath, path.join(tempDir, 'node.lib')); | ||||
|         } | ||||
|         catch (err) { | ||||
|             if (err instanceof tc.HTTPError && err.httpStatusCode == 404) { | ||||
|                 exeUrl = `https://nodejs.org/dist/v${version}/node.exe`; | ||||
|                 libUrl = `https://nodejs.org/dist/v${version}/node.lib`; | ||||
|                 const exePath = yield tc.downloadTool(exeUrl); | ||||
|                 yield io.mv(exePath, path.join(tempDir, 'node.exe')); | ||||
|                 yield io.cp(exePath, path.join(tempDir, 'node.exe')); | ||||
|                 const libPath = yield tc.downloadTool(libUrl); | ||||
|                 yield io.mv(libPath, path.join(tempDir, 'node.lib')); | ||||
|                 yield io.cp(libPath, path.join(tempDir, 'node.lib')); | ||||
|             } | ||||
|             else { | ||||
|                 throw err; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Danny McCormick
					Danny McCormick