bin version exec命令修改
Some checks failed
Continuous Integration / GitHub Actions Test (push) Failing after 11s
Some checks failed
Continuous Integration / GitHub Actions Test (push) Failing after 11s
This commit is contained in:
parent
625cb7a64e
commit
974228f061
@ -45,7 +45,7 @@ export async function run(): Promise<void> {
|
||||
core.addPath(binPath)
|
||||
// 测试输出版本
|
||||
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}`)
|
||||
|
||||
// 尝试从缓存中恢复依赖包
|
||||
|
Loading…
Reference in New Issue
Block a user