mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 06:40:49 +08:00
feat: 在 action.yml 中添加调试信息以便于提取 node 版本
This commit is contained in:
@ -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/*"
|
||||
|
Reference in New Issue
Block a user