We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a56e9b commit 669dc28Copy full SHA for 669dc28
action.yml
@@ -129,6 +129,20 @@ runs:
129
echo "Installing $PKG globally (skip browser download)..."
130
npm i -g --no-audit --no-fund "$PKG"
131
command -v playwright || true
132
+ GLOBAL_NODE_ROOT=$(npm root -g | tr -d '\r')
133
+ OS="${RUNNER_OS:-}"
134
+ if [ "$OS" = "Windows" ] && command -v cygpath >/dev/null 2>&1; then
135
+ GLOBAL_NODE_ROOT=$(cygpath -m "$GLOBAL_NODE_ROOT")
136
+ fi
137
+ SEP=':'
138
+ if [ "$OS" = "Windows" ]; then
139
+ SEP=';'
140
141
+ if [ -n "${NODE_PATH:-}" ]; then
142
+ echo "NODE_PATH=${GLOBAL_NODE_ROOT}${SEP}${NODE_PATH}" >> "$GITHUB_ENV"
143
+ else
144
+ echo "NODE_PATH=${GLOBAL_NODE_ROOT}" >> "$GITHUB_ENV"
145
146
- name: Install browsers
147
shell: bash
148
env:
0 commit comments