You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: action.yml
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,12 @@ runs:
38
38
elif [ $(find "." -maxdepth 1 -name "pnpm-lock.yaml") ]; then
39
39
echo "PACKAGE_MANAGER=pnpm" >> $GITHUB_ENV
40
40
echo "LOCKFILE=pnpm-lock.yaml" >> $GITHUB_ENV
41
+
# If packageManager field is not present, use latest version.
42
+
if ! jq -e '.packageManager' package.json > /dev/null 2>&1; then
43
+
VERSION="latest"
44
+
# Annotate this action run to let users know we’re using the default.
45
+
echo "::warning title=Could not detect PNPM version::No \`packageManager\` field found in \`package.json\`. Using latest PNPM version instead. We recommend specifying \`pnpm@VERSION\` explicitly using the \`packageManager\` field in your \`package.json\`."
46
+
fi
41
47
elif [ $(find "." -maxdepth 1 -name "yarn.lock") ]; then
0 commit comments