Compare commits

...

3 Commits
v0.1.1 ... main

Author SHA1 Message Date
soul-walker
ef3e0d569b 修改nodejs下载地址bug
Some checks failed
Continuous Integration / GitHub Actions Test (push) Has been cancelled
2024-08-22 11:10:19 +08:00
soul-walker
d818a11eb2 打包
Some checks are pending
Continuous Integration / GitHub Actions Test (push) Waiting to run
2024-08-22 11:05:15 +08:00
soul-walker
68e0df6771 修改nodejs下载地址
Some checks are pending
Continuous Integration / GitHub Actions Test (push) Waiting to run
2024-08-22 10:59:20 +08:00
2 changed files with 2 additions and 2 deletions

BIN
dist/index.js generated vendored

Binary file not shown.

View File

@ -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<string> {
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}`)