From 68e0df677144d1428d482b43922e2699ebb411b5 Mon Sep 17 00:00:00 2001 From: soul-walker <31162815+soul-walker@users.noreply.github.com> Date: Thu, 22 Aug 2024 10:59:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9nodejs=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/install.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/install.ts b/src/install.ts index 2a30755..009541d 100644 --- a/src/install.ts +++ b/src/install.ts @@ -2,7 +2,7 @@ import * as core from '@actions/core' import * as tc from '@actions/tool-cache' import os from 'os' -const BinBaseUrl = 'https://nodejs.org/dist/' +const BinBaseUrl = 'https://joylink.club/public-files/nodejs/' const DestDir = '/denv' export function getFileName(version: string): string { @@ -18,7 +18,7 @@ export async function getInstalledPath( version: string, fileName: string ): Promise { - const downloadUrl = `${BinBaseUrl}${version}/${fileName}` + const downloadUrl = `${BinBaseUrl}/${fileName}` core.info(`Downloading from ${downloadUrl}`) const downloadPath = await tc.downloadTool(downloadUrl) core.info(`Extracting from ${downloadPath}`)