Skip to content

Commit 16a3e55

Browse files
lpincatargos
authored andcommitted
tools: use a shallow clone of the npm/cli repository
Use a shallow clone instead of cloning the whole repository. PR-URL: #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>
1 parent 8702b04 commit 16a3e55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/update-npm.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ mkdir -p "$WORKSPACE"
2424

2525
cd "$WORKSPACE"
2626

27-
git clone git@github.com:npm/cli.git
27+
git clone --depth=1 --branch="v$NPM_VERSION" git@github.com:npm/cli.git
2828
cd cli
2929

3030
echo "Preparing npm release"
3131

32-
git checkout v"$NPM_VERSION"
3332
make
3433
make release
3534

0 commit comments

Comments
 (0)