Skip to content

Commit 0df33aa

Browse files
committed
optimize vercel checkout
1 parent 8ca0b57 commit 0df33aa

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/vercel-prepare.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
# Clone nodejs/node to ./node
2-
git clone https://github.com/nodejs/node.git --depth 1 node
1+
# Clone the repository with no checkout and shallow history
2+
git clone --depth 1 --filter=blob:none --sparse https://github.com/nodejs/node.git
3+
4+
# Move into the cloned directory
5+
cd node
6+
7+
# Enable sparse checkout and specify the folder
8+
git sparse-checkout set doc/
39

410
# Install npm dependencies
511
npm ci

0 commit comments

Comments
 (0)