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>
This commit is contained in:
Luigi Pinca authored and Michaël Zasso committed 2021-05-03 13:34:48 +02:00
1 parent 10147f191e
commit 8a83bfd1bd
1 file changed
+1 -2
+1 -2
View File
@@ -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