Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLuigi Pinca <luigipinca@gmail.com>2021-04-29 09:51:25 +0300
committerMichaƫl Zasso <targos@protonmail.com>2021-05-02 10:22:58 +0300
commit1226f056d198de948ec156939c5f731dcf26e036 (patch)
tree3935fb3f6c4c1643e89a4d878094b719f8169f29 /tools
parent54dfdbcccf1f2844974bdcdedbfa1f45d75c55d5 (diff)
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 <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/update-npm.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/update-npm.sh b/tools/update-npm.sh
index c106570d0b3..a203bba3623 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