Skip to content

Commit 6c09f5e

Browse files
authored
fix(ci): copy pnpm binary as pnpm.exe on Windows instead of symlink (#224)
1 parent 18bdb73 commit 6c09f5e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/actions/setup/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ runs:
6363
exit 1
6464
fi
6565
chmod +x "$PNPM_BIN"
66-
ln -sf "$PNPM_BIN" "$PNPM_DIR/pnpm"
66+
# Create pnpm alias. Windows needs a .exe copy; Unix uses a symlink.
67+
if [[ "$ASSET" == *.exe ]]; then
68+
cp "$PNPM_BIN" "$PNPM_DIR/pnpm.exe"
69+
else
70+
ln -sf "$PNPM_BIN" "$PNPM_DIR/pnpm"
71+
fi
6772
fi
6873
echo "$PNPM_DIR" >> "${GITHUB_PATH:-/dev/null}"
6974

0 commit comments

Comments
 (0)