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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
lpinca authored and targos committed May 2, 2021
1 parent 54dfdbc commit 1226f05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/update-npm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ mkdir -p "$WORKSPACE"

cd "$WORKSPACE"

git clone [email protected]:npm/cli.git
git clone --depth=1 --branch="v$NPM_VERSION" [email protected]:npm/cli.git
cd cli

echo "Preparing npm release"

git checkout v"$NPM_VERSION"
make
make release

Expand Down

0 comments on commit 1226f05

Please sign in to comment.