feat: 在 action.yml 中添加调试信息以便于提取 node 版本

This commit is contained in:
严浩
2024-10-12 15:47:15 +08:00
parent c7455bfb3c
commit a6aa3462f3

View File

@ -67,6 +67,7 @@ runs:
# Extract the node version from the .npmrc file
set -x;
nodeVersion=$(sed -n 's/.*use-node-version=\([0-9.]*\).*/\1/p' .npmrc)
if [[ -z "$nodeVersion" ]]; then
nodeVersion="lts/*"