bin version exec命令修改
Some checks failed
Continuous Integration / GitHub Actions Test (push) Failing after 11s

This commit is contained in:
soul-walker 2024-03-20 20:37:57 +08:00
parent 625cb7a64e
commit 974228f061

View File

@ -45,7 +45,7 @@ export async function run(): Promise<void> {
core.addPath(binPath) core.addPath(binPath)
// 测试输出版本 // 测试输出版本
const bp = await io.which('node') const bp = await io.which('node')
const execVersion = (cp.execSync(`${bp} -v`) || '').toString() const execVersion = (cp.execSync(`${bp} --version`) || '').toString()
core.info(`version cmd result is: ${execVersion}`) core.info(`version cmd result is: ${execVersion}`)
// 尝试从缓存中恢复依赖包 // 尝试从缓存中恢复依赖包