From 16a3e555bae972949221adb871d5b7212426cfa6 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Thu, 29 Apr 2021 08:51:25 +0200 Subject: [PATCH] tools: use a shallow clone of the npm/cli repository Use a shallow clone instead of cloning the whole repository. PR-URL: https://github.com/nodejs/node/pull/38463 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Darshan Sen Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- tools/update-npm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/update-npm.sh b/tools/update-npm.sh index c106570d0b33dd..a203bba3623f7e 100755 --- a/tools/update-npm.sh +++ b/tools/update-npm.sh @@ -24,12 +24,11 @@ mkdir -p "$WORKSPACE" cd "$WORKSPACE" -git clone git@github.com:npm/cli.git +git clone --depth=1 --branch="v$NPM_VERSION" git@github.com:npm/cli.git cd cli echo "Preparing npm release" -git checkout v"$NPM_VERSION" make make release