mirror of
https://git.studyfor.work/actions/gitea-tool-cache.git
synced 2026-01-12 00:16:03 +08:00
1
This commit is contained in:
parent
089f2c31a6
commit
3f79b938e5
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -32262,10 +32262,10 @@ async function nodeInstall() {
|
||||
console.log('没有node-version,跳过node安装');
|
||||
return;
|
||||
}
|
||||
console.log(nodeVersion);
|
||||
const version = await (0, gitea_tool_cache_version_alias_1.nodeVersionAlias)(nodeVersion, {
|
||||
mirror: 'https://npmmirror.com/mirrors/node'
|
||||
}).catch(err => err);
|
||||
console.log(version);
|
||||
if (version instanceof Error) {
|
||||
console.log('node版本错误', version);
|
||||
return;
|
||||
|
||||
@ -14,10 +14,11 @@ export async function nodeInstall() {
|
||||
console.log('没有node-version,跳过node安装');
|
||||
return;
|
||||
}
|
||||
console.log(nodeVersion);
|
||||
const version = await nodeVersionAlias(nodeVersion, {
|
||||
mirror: 'https://npmmirror.com/mirrors/node'
|
||||
}).catch(err => err);
|
||||
console.log(version);
|
||||
|
||||
if (version instanceof Error) {
|
||||
console.log('node版本错误', version);
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user