mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
10147f191e
commit
8a83bfd1bd
1 file changed
+1
-2
+1
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user