Skip to content

Commit

Permalink
tools: use a shallow clone of the npm/cli repository
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lpinca authored and targos committed Jun 11, 2021
1 parent 8702b04 commit 16a3e55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/update-npm.sh
Expand Up @@ -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

Expand Down

0 comments on commit 16a3e55

Please sign in to comment.