File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -216,13 +216,13 @@ jobs:
216216 if [ -s deps_to_install.txt ]; then
217217 if [ -f "$project_dir/yarn.lock" ]; then
218218 echo "Using yarn to add/update dependencies in $project_dir..."
219- # Use $GITHUB_WORKSPACE for an absolute path to the deps file .
220- (cd "$project_dir" && xargs -n 1 yarn add < "$GITHUB_WORKSPACE/deps_to_install.txt")
219+ # Remove -n 1 to run yarn add only once with all dependencies .
220+ (cd "$project_dir" && xargs yarn add < "$GITHUB_WORKSPACE/deps_to_install.txt")
221221 git add "$project_dir/yarn.lock"
222222 else
223223 echo "Using npm to install/update dependencies in $project_dir..."
224- # Use $GITHUB_WORKSPACE for an absolute path to the deps file .
225- (cd "$project_dir" && xargs -n 1 npm install < "$GITHUB_WORKSPACE/deps_to_install.txt")
224+ # Remove -n 1 to run npm install only once with all dependencies .
225+ (cd "$project_dir" && xargs npm install < "$GITHUB_WORKSPACE/deps_to_install.txt")
226226 git add "$project_dir/package-lock.json"
227227 fi
228228 # Stage the manifest file that npm/yarn updated.
You can’t perform that action at this time.
0 commit comments