File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 name :
1010 description : " The name of the package manager (e.g. npm, pnpm, yarn)"
1111 value : ${{ steps.detect-package-manager.outputs.name }}
12+ version :
13+ description : " The version of the package manager (e.g. 10.1.0, 10.1.1)"
14+ value : ${{ steps.detect-package-manager.outputs.version }}
1215 lockFilePath :
1316 description : " The path to the lock file (e.g. package-lock.json, pnpm-lock.yaml, yarn.lock)"
1417 value : ${{ steps.detect-package-manager.outputs.lock-file-path }}
5457
5558 # Parse the JSON and extract individual values
5659 NAME=$(echo "$PM_OUTPUT" | jq -r '.name')
60+ VERSION=$(echo "$PM_OUTPUT" | jq -r '.version')
5761 LOCK_FILE_PATH=$(echo "$PM_OUTPUT" | jq -r '.lockFilePath')
5862 AGENT=$(echo "$PM_OUTPUT" | jq -r '.agent')
5963 INSTALL_CMD=$(echo "$PM_OUTPUT" | jq -r '.install')
6872
6973 # Set outputs
7074 echo "name=$NAME" >> $GITHUB_OUTPUT
75+ echo "version=$VERSION" >> $GITHUB_OUTPUT
7176 echo "lock-file-path=$LOCK_FILE_PATH" >> $GITHUB_OUTPUT
7277 echo "agent=$AGENT" >> $GITHUB_OUTPUT
7378 echo "install-cmd=$INSTALL_CMD" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments