We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02e0ec0 commit da6ce97Copy full SHA for da6ce97
.github/workflows/build-pull-request.yml
@@ -126,6 +126,15 @@ jobs:
126
# Check the exit status of parallel
127
parallel_exit=$?
128
129
+ # If parallel succeeded, clean up node_modules to save space
130
+ if [ $parallel_exit -eq 0 ]; then
131
+ echo "::group::Cleaning up node_modules"
132
+ # Find all node_modules directories within the language directory and remove them
133
+ find ./ -name "node_modules" -type d -prune -exec rm -rf {} \; 2>/dev/null || true
134
+ echo "Cleanup completed"
135
+ echo "::endgroup::"
136
+ fi
137
+
138
# If parallel failed, make sure the workflow fails too
139
if [ $parallel_exit -ne 0 ]; then
140
echo "::error::One or more builds failed. See error details above."
0 commit comments